2016-07-21 19:11:15 +08:00
|
|
|
<% provide(:head_title, raw(t("projects.show.head_title", project: @project.name))) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= render partial: "shared/sidebar" %>
|
|
|
|
<%= render partial: "shared/secondary_navigation" %>
|
2016-07-28 22:41:10 +08:00
|
|
|
|
2016-08-04 18:57:33 +08:00
|
|
|
<div class="row">
|
2016-08-25 01:03:58 +08:00
|
|
|
<div class="col-sm-12"
|
|
|
|
id="data-holder"
|
|
|
|
data-project-id="<%= @project.id %>">
|
2016-08-17 20:27:59 +08:00
|
|
|
<% if can_create_experiment(@project) %>
|
|
|
|
<div class="row">
|
2016-08-24 23:00:27 +08:00
|
|
|
<div class="col-sm-12">
|
2016-08-26 22:32:49 +08:00
|
|
|
<%= link_to new_project_experiment_url(@project),
|
2016-08-17 20:27:59 +08:00
|
|
|
remote: true,
|
|
|
|
type: "button",
|
|
|
|
id: 'new-experiment',
|
2016-08-26 22:32:49 +08:00
|
|
|
class: 'btn btn-primary pull-right',
|
2016-08-25 01:03:58 +08:00
|
|
|
data: {
|
2016-08-26 22:32:49 +08:00
|
|
|
intro: t('tutorial.create_experiment_html'),
|
|
|
|
step: '4',
|
|
|
|
position: 'left'
|
|
|
|
} do %>
|
2016-08-24 23:00:27 +08:00
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
2016-09-06 16:10:49 +08:00
|
|
|
<span class="hidden-xs"><%=t 'experiments.new.create' %></span>
|
2016-08-24 23:00:27 +08:00
|
|
|
<% end %>
|
2016-08-17 20:27:59 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<h2><%= t'projects.show.page_title' %></h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-04 18:57:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-22 17:29:19 +08:00
|
|
|
<div class="row">
|
2016-08-09 20:26:08 +08:00
|
|
|
<% @project.active_experiments.each_with_index do |experiment, index| %>
|
|
|
|
<%= render partial: 'projects/show/experiment',
|
|
|
|
locals: { experiment: experiment } %>
|
2016-08-04 18:57:33 +08:00
|
|
|
|
2016-08-09 20:26:08 +08:00
|
|
|
<%= content_tag(:div, '', class: 'clearfix visible-lg-block') if (index + 1) % 2 == 0 %>
|
|
|
|
<% end %>
|
2016-08-22 21:22:05 +08:00
|
|
|
<% if can_create_experiment(@project) %>
|
|
|
|
<%= render 'projects/show/new_experiment' %>
|
|
|
|
<% end %>
|
2016-08-09 20:26:08 +08:00
|
|
|
</div>
|
2016-08-12 16:18:35 +08:00
|
|
|
<%= javascript_include_tag("experiments/dropdown_actions") %>
|
2016-08-19 21:36:12 +08:00
|
|
|
<%= javascript_include_tag("projects/show") %>
|