scinote-web/app/views/my_modules/archive.html.erb
2020-10-29 14:23:32 +01:00

19 lines
773 B
Text

<% provide(:head_title, t("my_modules.module_archive.head_title", project: h(@my_module.experiment.project.name), module: h(@my_module.name)).html_safe) %>
<%= render partial: "shared/sidebar", locals: { current_task: @my_module, page: 'task' } %>
<%= render partial: "shared/secondary_navigation" %>
<div class="content-pane" id="result-archive">
<div class="row">
<% if @archived_results.any? %>
<% @archived_results.each do |result| %>
<div class="col-xs-3">
<%= render partial: "my_modules/archive/result.html.erb", locals: { result: result } %>
</div>
<% end %>
<% else %>
<div class="col-xs-12">
<em><%=t "my_modules.module_archive.no_archived_results" %></em>
</div>
<% end %>
</div>
</div>