mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
28 lines
1.2 KiB
Text
28 lines
1.2 KiB
Text
<ul class="sidebar-branch">
|
|
<li class="sidebar-leaf">
|
|
<% if @project.archived? %>
|
|
<%= link_to t('sidebar.experiments.back_archived_projects'), projects_path(view_mode: :archived), class: 'sidebar-link back-button' %>
|
|
<% elsif archived %>
|
|
<%= link_to t('sidebar.experiments.back_active_experiments'), project_url(@project), class: 'sidebar-link back-button' %>
|
|
<% else %>
|
|
<%= link_to t('sidebar.experiments.back_button'), projects_path, class: 'sidebar-link back-button' %>
|
|
<% end %>
|
|
</li>
|
|
<% project.sorted_experiments(@current_sort, archived).each do |experiment| %>
|
|
<li class="sidebar-leaf">
|
|
<% if archived %>
|
|
<%= link_to experiment.name, module_archive_experiment_path(experiment), class: 'sidebar-link' %>
|
|
<% else %>
|
|
<%= link_to experiment.name, canvas_experiment_path(experiment), class: 'sidebar-link' %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
<% unless archived %>
|
|
<li class="sidebar-leaf">
|
|
<%= link_to experiment_archive_project_url(@project), class: 'sidebar-link' do %>
|
|
<i class="fas fa-archive"></i>
|
|
<%= t('sidebar.experiments.archived_experiments') %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|