scinote-web/app/views/projects/experiment_archive.html.erb

29 lines
1,017 B
Text
Raw Normal View History

<% provide(:head_title, t("projects.experiment_archive.head_title", project: h(@project.name)).html_safe) %>
2016-02-12 23:52:43 +08:00
<%= render partial: "shared/sidebar" %>
<%= render partial: "shared/secondary_navigation" %>
2016-08-08 20:19:35 +08:00
<% if @project.archived_experiments.count > 0 %>
2016-02-12 23:52:43 +08:00
<div class="row">
2016-08-08 20:19:35 +08:00
<% @project.archived_experiments.each_with_index do |experiment, i| %>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
2016-08-08 20:19:35 +08:00
<%= render partial: "projects/experiment_archive/experiment.html.erb", locals: { experiment: experiment} %>
2016-02-12 23:52:43 +08:00
</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 %>
<% end %>
</div>
<% else %>
<div class="row">
<div class="col-xs-12">
2016-08-08 20:19:35 +08:00
<em><%=t "projects.experiment_archive.no_archived_experiments" %></em>
2016-02-12 23:52:43 +08:00
</div>
</div>
2016-08-08 20:19:35 +08:00
<% end %>