2017-01-12 23:54:15 +08:00
|
|
|
<% provide(:head_title, t("projects.experiment_archive.head_title", project: h(@project.name)).html_safe) %>
|
2021-01-07 21:58:56 +08:00
|
|
|
<% provide(:sidebar_title, t("sidebar.experiments.sidebar_title_archived")) %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<% provide(:sidebar_url, project_sidebar_path(@project)) %>
|
2020-12-17 20:07:30 +08:00
|
|
|
<% provide(:container_class, 'no-second-nav-container') %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<%= content_for :sidebar do %>
|
2020-12-17 20:07:30 +08:00
|
|
|
<%= render partial: 'shared/sidebar/experiments.html.erb', locals: { project: @project, archived: true } %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2021-01-25 23:06:48 +08:00
|
|
|
<% content_for :breadcrumbs do %>
|
|
|
|
<%= render partial: 'projects/index/breadcrumbs', locals: { target_folder: @project.project_folder } %>
|
|
|
|
<% end %>
|
|
|
|
|
2020-12-17 20:07:30 +08:00
|
|
|
<div class="content-pane flexible" id="project-show-archive">
|
|
|
|
<%= render partial: 'projects/show/header' %>
|
|
|
|
<% if @project.archived_experiments.count > 0 %>
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="row" style="margin-top: 10px;">
|
2020-12-17 20:07:30 +08:00
|
|
|
<% @project.sorted_experiments(@current_sort, true).each_with_index do |experiment, i| %>
|
|
|
|
<%= render partial: "projects/show/experiment.html.erb", locals: { experiment: experiment} %>
|
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>
|
2021-01-28 04:53:39 +08:00
|
|
|
|
|
|
|
<%= javascript_include_tag("projects/show") %>
|