2020-12-10 22:15:36 +08:00
|
|
|
<ul class="sidebar-branch">
|
|
|
|
<li class="sidebar-leaf">
|
2020-12-21 18:56:33 +08:00
|
|
|
<% if @my_module.archived_branch? %>
|
|
|
|
<%= link_to t('sidebar.my_module.back_button_archived'), module_archive_experiment_url(@my_module.experiment), class: 'sidebar-link back-button' %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to t('sidebar.my_module.back_button'), canvas_experiment_path(@my_module.experiment), class: 'sidebar-link back-button' %>
|
|
|
|
<% end %>
|
2020-12-10 22:15:36 +08:00
|
|
|
</li>
|
|
|
|
<li class="sidebar-leaf">
|
|
|
|
<%= link_to t('sidebar.my_module.steps'),
|
|
|
|
protocols_my_module_url(@my_module),
|
|
|
|
class: "sidebar-link #{'selected' if is_module_protocols?}" %>
|
|
|
|
</li>
|
|
|
|
<li class="sidebar-leaf">
|
|
|
|
<%= link_to t('sidebar.my_module.results'),
|
|
|
|
results_my_module_url(@my_module),
|
|
|
|
class: "sidebar-link #{'selected' if is_module_results?}" %>
|
|
|
|
</li>
|
|
|
|
<li class="sidebar-leaf">
|
|
|
|
<%= link_to t('sidebar.my_module.activities'),
|
|
|
|
activities_my_module_url(@my_module),
|
|
|
|
class: "sidebar-link #{'selected' if is_module_activities?}" %>
|
|
|
|
</li>
|
|
|
|
<li data-hook="sidebar-my-module"></li>
|
2020-12-21 18:56:33 +08:00
|
|
|
<% unless @my_module.archived_branch? %>
|
|
|
|
<li class="sidebar-leaf">
|
|
|
|
<%= link_to t('sidebar.my_module.archive'),
|
|
|
|
archive_my_module_url(@my_module),
|
|
|
|
class: "sidebar-link #{'selected' if is_module_archive?}" %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2020-12-10 22:15:36 +08:00
|
|
|
</ul>
|