2017-01-12 23:54:15 +08:00
|
|
|
<% provide(:head_title, t("experiments.module_archive.head_title", experiment: h(@experiment.name)).html_safe) %>
|
2016-08-08 21:04:02 +08:00
|
|
|
<%= render partial: "shared/sidebar" %>
|
|
|
|
<%= render partial: "shared/secondary_navigation" %>
|
|
|
|
|
2018-05-12 00:02:17 +08:00
|
|
|
<div class="content-pane" id="module-archive">
|
2018-05-08 22:33:42 +08:00
|
|
|
<% if @experiment.archived_modules.count > 0 %>
|
|
|
|
<div class="row" style="margin-top: 10px;">
|
|
|
|
<% @experiment.archived_modules.each_with_index do |my_module, i| %>
|
|
|
|
<div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">
|
|
|
|
<%= render partial: "experiments/module_archive/my_module.html.erb", locals: { my_module: my_module} %>
|
|
|
|
</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-08-08 21:04:02 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2018-05-08 22:33:42 +08:00
|
|
|
<% else %>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<em><%=t "experiments.module_archive.no_archived_modules" %></em>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|