mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 06:35:14 +08:00
67dcbb0fa6
* Fix experiment view loading [SCI-7662] * Fix experiment view loading [SCI-7662]
20 lines
844 B
Text
20 lines
844 B
Text
<ul class="sidebar-branch">
|
|
<% if experiment.archived_branch? %>
|
|
<li class="sidebar-leaf">
|
|
<%= link_to t('sidebar.my_modules.back_to_archived_button'), project_path(experiment.project, view_mode: :archived), class: 'sidebar-link back-button' %>
|
|
</li>
|
|
<% else %>
|
|
<li class="sidebar-leaf">
|
|
<%= link_to t('sidebar.my_modules.back_to_active_button'), my_modules_experiment_path(experiment), class: 'sidebar-link back-button' %>
|
|
</li>
|
|
<% end %>
|
|
<% my_modules.each do |my_module| %>
|
|
<li class="sidebar-leaf">
|
|
<%= link_to my_module.name,
|
|
protocols_my_module_url(my_module),
|
|
title: my_module.name,
|
|
class: "sidebar-link #{'selected' if my_module == current_my_module}",
|
|
data: { module_id: my_module.id } %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|