2017-01-12 23:54:15 +08:00
|
|
|
<% provide(:head_title, t("projects.experiment_archive.head_title", project: h(@project.name)).html_safe) %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<% 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 %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= render partial: "shared/secondary_navigation" %>
|
|
|
|
|
2018-05-12 00:02:17 +08:00
|
|
|
<div class="content-pane" id="experiment-archive">
|
2020-12-13 05:46:30 +08:00
|
|
|
<% if @project.experiments.archived.present? %>
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="row" style="margin-top: 10px;">
|
2020-12-13 05:46:30 +08:00
|
|
|
<% @project.experiments.archived.each_with_index do |experiment, i| %>
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
|
|
|
<%= render partial: "projects/experiment_archive/experiment.html.erb", locals: { experiment: experiment} %>
|
|
|
|
</div>
|
|
|
|
<% if (i+1) % 6 == 0 %>
|
|
|
|
<div class="clearfix visible-lg-block"></div>
|
|
|
|
<% end %>
|
|
|
|
<% if (i+1) % 4 == 0 %>
|
|
|
|
<div class="clearfix visible-md-block"></div>
|
|
|
|
<% end %>
|
|
|
|
<% if (i+1) % 3 == 0 %>
|
|
|
|
<div class="clearfix visible-sm-block"></div>
|
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2018-05-08 22:33:42 +08:00
|
|
|
<% else %>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<em><%=t "projects.experiment_archive.no_archived_experiments" %></em>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|