mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-05 07:03:51 +08:00
2ca7b81cea
* Change experiment archived card [SCI-5270]
37 lines
1.5 KiB
Text
37 lines
1.5 KiB
Text
<% provide(:head_title, t("projects.show.head_title", project: h(@project.name)).html_safe) %>
|
|
<% provide(:sidebar_title, t("sidebar.experiments.sidebar_title")) %>
|
|
<% 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: false } %>
|
|
<% end %>
|
|
|
|
<div class="content-pane flexible" id="project-show">
|
|
<%= render partial: 'projects/show/header' %>
|
|
<div class="project-show-toolbar">
|
|
<% if can_create_experiments?(@project) %>
|
|
<%= link_to new_project_experiment_url(@project),
|
|
remote: true,
|
|
type: "button",
|
|
id: 'new-experiment',
|
|
class: 'btn btn-primary' do %>
|
|
<span class="fas fa-plus"></span>
|
|
<span class="hidden-xs"><%=t 'experiments.new.create' %></span>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<div class="row">
|
|
<% @project.sorted_experiments(@current_sort).each_with_index do |experiment, index| %>
|
|
<%= render partial: 'projects/show/experiment',
|
|
locals: { experiment: experiment } %>
|
|
<% end %>
|
|
<% if can_create_experiments?(@project) %>
|
|
<%= render 'projects/show/new_experiment' %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= javascript_include_tag("experiments/dropdown_actions") %>
|
|
<%= javascript_include_tag("projects/show") %>
|
|
<i data-hook="project-show-js"></i>
|