scinote-web/app/views/shared/sidebar/_my_modules.html.erb
aignatov-bio 276d6abe19
Update archive navigation for tasks page [SCI-5347] (#3052)
* Update archive navigation for tasks page [SCI-5347]
2021-01-07 17:18:52 +01:00

22 lines
855 B
Text

<ul class="sidebar-branch">
<li class="sidebar-leaf">
<%= link_to t('sidebar.my_modules.back_button'), project_url(experiment.project), class: 'sidebar-link back-button' %>
</li>
<% 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 } %>
<% if action_name == 'canvas' %>
<i class="fas fa-map-marker-alt canvas-center-on" data-module-id="<%= my_module.id %>"></i>
<% end %>
</li>
<% end %>
<li class="sidebar-leaf">
<%= link_to module_archive_experiment_url(experiment), class: 'sidebar-link' do %>
<i class="fas fa-archive"></i>&nbsp;
<%= t('sidebar.my_modules.archived_button') %>
<% end%>
</li>
</ul>