2020-12-10 22:15:36 +08:00
|
|
|
<ul class="sidebar-branch">
|
|
|
|
<li class="sidebar-leaf">
|
2020-12-17 20:07:30 +08:00
|
|
|
<% unless archived && !@project.archived? %>
|
|
|
|
<%= link_to t('sidebar.experiments.back_button'), projects_path, class: 'sidebar-link back-button' %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to t('sidebar.experiments.back_active_experiments'), project_url(@project), class: 'sidebar-link back-button' %>
|
|
|
|
<% end %>
|
2020-12-10 22:15:36 +08:00
|
|
|
</li>
|
2020-12-17 20:07:30 +08:00
|
|
|
<% project.sorted_experiments(@current_sort, archived).each do |experiment| %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<li class="sidebar-leaf">
|
2020-12-31 05:49:02 +08:00
|
|
|
<%= link_to experiment.name, canvas_experiment_path(experiment), class: 'sidebar-link' %>
|
2020-12-10 22:15:36 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
2020-12-17 20:07:30 +08:00
|
|
|
<% 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 %>
|
2020-12-10 22:15:36 +08:00
|
|
|
</ul>
|