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

35 lines
1.2 KiB
Plaintext

<% 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 %>
</div>
<%= javascript_include_tag("experiments/dropdown_actions") %>