scinote-web/app/views/projects/show.html.erb
2016-08-04 12:57:33 +02:00

25 lines
870 B
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-md-12">
<h2 class="pull-left"><%= t'projects.show.page_title' %></h2>
<% if can_create_experiment(@project) %>
<%= link_to t('experiments.new.create'),
new_project_experiment_url(@project),
remote: true,
type: "button",
id: 'new-experiment',
class: "btn btn-primary center-btn" %>
<% end %>
</div>
</div>
<% @project.active_experiments.each do |experiment| %>
<%= render partial: 'projects/show/experiment',
locals: { experiment: experiment } %>
<% end %>
<%= javascript_include_tag("projects/show") %>