mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 06:06:56 +08:00
67dcbb0fa6
* Fix experiment view loading [SCI-7662] * Fix experiment view loading [SCI-7662]
23 lines
948 B
Text
23 lines
948 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&.readable_by_user(current_user)&.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',
|
|
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 my_modules_experiment_path(experiment, view_mode: :archived), class: 'sidebar-link' do %>
|
|
<i class="fas fa-archive"></i>
|
|
<%= t('sidebar.my_modules.archived_button') %>
|
|
<% end%>
|
|
</li>
|
|
</ul>
|