2020-12-13 05:46:30 +08:00
|
|
|
<ul class="sidebar-branch">
|
|
|
|
<% if experiment.archived_branch? %>
|
|
|
|
<li class="sidebar-leaf">
|
2021-02-11 21:16:57 +08:00
|
|
|
<%= link_to t('sidebar.my_modules.back_to_archived_button'), project_path(experiment.project, view_mode: :archived), class: 'sidebar-link back-button' %>
|
2020-12-13 05:46:30 +08:00
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li class="sidebar-leaf">
|
2023-01-03 19:24:56 +08:00
|
|
|
<% if params[:action] == 'table' %>
|
|
|
|
<%= link_to t('sidebar.my_modules.back_to_active_button'), table_experiment_path(experiment), class: 'sidebar-link back-button' %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to t('sidebar.my_modules.back_to_active_button'), canvas_experiment_url(experiment), class: 'sidebar-link back-button' %>
|
|
|
|
<% end %>
|
2020-12-13 05:46:30 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% my_modules.each do |my_module| %>
|
|
|
|
<li class="sidebar-leaf">
|
|
|
|
<%= link_to my_module.name,
|
2020-12-31 05:49:02 +08:00
|
|
|
protocols_my_module_url(my_module),
|
2021-03-09 05:02:01 +08:00
|
|
|
title: my_module.name,
|
2020-12-13 05:46:30 +08:00
|
|
|
class: 'sidebar-link',
|
|
|
|
data: { module_id: my_module.id } %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|