<% provide(:head_title, t("projects.experiment_archive.head_title", project: h(@project.name)).html_safe) %> <% provide(:sidebar_title, t("sidebar.experiments.sidebar_title")) %> <% provide(:sidebar_url, project_sidebar_path(@project)) %> <%= content_for :sidebar do %> <%= render partial: 'shared/sidebar/experiments.html.erb', locals: { project: @project } %> <% end %> <%= render partial: "shared/secondary_navigation" %>
<% if @project.experiments.archived.present? %>
<% @project.experiments.archived.each_with_index do |experiment, i| %>
<%= render partial: "projects/experiment_archive/experiment.html.erb", locals: { experiment: experiment} %>
<% if (i+1) % 6 == 0 %>
<% end %> <% if (i+1) % 4 == 0 %>
<% end %> <% if (i+1) % 3 == 0 %>
<% end %> <% end %>
<% else %>
<%=t "projects.experiment_archive.no_archived_experiments" %>
<% end %>