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

31 lines
1.3 KiB
Text
Raw Normal View History

<% provide(:head_title, t("projects.experiment_archive.head_title", project: h(@project.name)).html_safe) %>
<% provide(:sidebar_title, t("sidebar.experiments.sidebar_title_archived")) %>
<% provide(:sidebar_url, project_sidebar_path(@project)) %>
<% provide(:container_class, 'no-second-nav-container') %>
<%= content_for :sidebar do %>
<%= render partial: 'shared/sidebar/experiments.html.erb', locals: { project: @project, archived: true } %>
<% end %>
2016-02-12 23:52:43 +08:00
<% content_for :breadcrumbs do %>
<%= render partial: 'projects/index/breadcrumbs', locals: { target_folder: @project.project_folder } %>
<% end %>
<div class="content-pane flexible" id="project-show-archive">
<%= render partial: 'projects/show/header' %>
<% if @project.archived_experiments.count > 0 %>
<div class="row" style="margin-top: 10px;">
<% @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>
<% else %>
<div class="row">
<div class="col-xs-12">
<em><%=t "projects.experiment_archive.no_archived_experiments" %></em>
</div>
</div>
<% end %>
</div>
<%= javascript_include_tag("projects/show") %>