mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 06:36:27 +08:00
aa650bbc65
Add plus button at the bottom of project overview page [fixes SCI-359]
38 lines
1.3 KiB
Text
38 lines
1.3 KiB
Text
<% provide(:head_title, raw(t("projects.show.head_title", project: @project.name))) %>
|
|
<%= render partial: "shared/sidebar" %>
|
|
<%= render partial: "shared/secondary_navigation" %>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<% if can_create_experiment(@project) %>
|
|
<div class="row">
|
|
<div class="col-sm-4 col-sm-offset-4">
|
|
<%= link_to t('experiments.new.create'),
|
|
new_project_experiment_url(@project),
|
|
remote: true,
|
|
type: "button",
|
|
id: 'new-experiment',
|
|
class: "btn btn-primary center-btn" %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<h2><%= t'projects.show.page_title' %></h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<% @project.active_experiments.each_with_index do |experiment, index| %>
|
|
<%= render partial: 'projects/show/experiment',
|
|
locals: { experiment: experiment } %>
|
|
|
|
<%= content_tag(:div, '', class: 'clearfix visible-lg-block') if (index + 1) % 2 == 0 %>
|
|
<% end %>
|
|
<% if can_create_experiment(@project) %>
|
|
<%= render 'projects/show/new_experiment' %>
|
|
<% end %>
|
|
</div>
|
|
<%= javascript_include_tag("experiments/dropdown_actions") %>
|
|
<%= javascript_include_tag("projects/show") %>
|