scinote-web/app/views/shared/sidebar/_archived_my_modules.html.erb
2020-12-30 22:49:02 +01:00

19 lines
746 B
Text

<ul class="sidebar-branch">
<% if experiment.archived_branch? %>
<li class="sidebar-leaf">
<%= link_to t('sidebar.my_modules.back_to_archived_button'), experiment_archive_project_url(experiment.project), class: 'sidebar-link back-button' %>
</li>
<% else %>
<li class="sidebar-leaf">
<%= link_to t('sidebar.my_modules.back_to_active_button'), canvas_experiment_url(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),
class: 'sidebar-link',
data: { module_id: my_module.id } %>
</li>
<% end %>
</ul>