2020-12-10 22:15:36 +08:00
|
|
|
<ul class="sidebar-branch">
|
|
|
|
<li class="sidebar-leaf">
|
2023-01-12 18:31:04 +08:00
|
|
|
<%= link_to t('sidebar.my_module.back_button'), my_modules_experiment_path(experiment), class: 'sidebar-link back-button' %>
|
2020-12-10 22:15:36 +08:00
|
|
|
</li>
|
2021-06-18 22:52:19 +08:00
|
|
|
<% my_modules.each do |my_module| %>
|
2020-12-21 18:56:33 +08:00
|
|
|
<li class="sidebar-leaf">
|
2021-06-18 22:52:19 +08:00
|
|
|
<%= 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 } %>
|
2020-12-21 18:56:33 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
2021-06-18 22:52:19 +08:00
|
|
|
<li class="sidebar-leaf">
|
2023-01-12 18:31:04 +08:00
|
|
|
<%= link_to my_modules_experiment_path(experiment, view_mode: :archived), class: 'sidebar-link' do %>
|
2021-06-18 22:52:19 +08:00
|
|
|
<i class="fas fa-archive"></i>
|
|
|
|
<%= t('sidebar.my_modules.archived_button') %>
|
|
|
|
<% end%>
|
|
|
|
</li>
|
2020-12-10 22:15:36 +08:00
|
|
|
</ul>
|