2020-12-10 22:15:36 +08:00
|
|
|
<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>
|
2020-12-13 05:46:30 +08:00
|
|
|
<% my_modules.each do |my_module| %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<li class="sidebar-leaf">
|
|
|
|
<%= link_to my_module.name,
|
2020-12-31 05:49:02 +08:00
|
|
|
protocols_my_module_url(my_module),
|
2021-02-23 22:00:11 +08:00
|
|
|
title: my_module.name,
|
2020-12-13 05:46:30 +08:00
|
|
|
class: 'sidebar-link',
|
2020-12-10 22:15:36 +08:00
|
|
|
data: { module_id: my_module.id } %>
|
2020-12-13 05:46:30 +08:00
|
|
|
<% if action_name == 'canvas' %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<i class="fas fa-map-marker-alt canvas-center-on" data-module-id="<%= my_module.id %>"></i>
|
2020-11-20 21:53:50 +08:00
|
|
|
<% end %>
|
2020-12-10 22:15:36 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
2020-12-13 05:46:30 +08:00
|
|
|
<li class="sidebar-leaf">
|
2021-01-08 00:18:52 +08:00
|
|
|
<%= link_to module_archive_experiment_url(experiment), class: 'sidebar-link' do %>
|
|
|
|
<i class="fas fa-archive"></i>
|
|
|
|
<%= t('sidebar.my_modules.archived_button') %>
|
|
|
|
<% end%>
|
2020-12-13 05:46:30 +08:00
|
|
|
</li>
|
2020-12-10 22:15:36 +08:00
|
|
|
</ul>
|