2017-01-12 23:54:15 +08:00
|
|
|
<% provide(:head_title, t("projects.show.head_title", project: h(@project.name)).html_safe) %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<% provide(:sidebar_title, t("sidebar.experiments.sidebar_title")) %>
|
|
|
|
<% provide(:sidebar_url, project_sidebar_path(@project)) %>
|
2020-12-17 20:07:30 +08:00
|
|
|
<% provide(:container_class, 'no-second-nav-container') %>
|
2020-12-10 22:15:36 +08:00
|
|
|
|
|
|
|
<%= content_for :sidebar do %>
|
2020-12-17 20:07:30 +08:00
|
|
|
<%= render partial: 'shared/sidebar/experiments.html.erb', locals: { project: @project, archived: false } %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<% end %>
|
2016-07-28 22:41:10 +08:00
|
|
|
|
2020-12-17 20:07:30 +08:00
|
|
|
<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 %>
|
2016-08-04 18:57:33 +08:00
|
|
|
</div>
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="row">
|
2020-12-17 20:07:30 +08:00
|
|
|
<% @project.sorted_experiments(@current_sort).each_with_index do |experiment, index| %>
|
2018-05-08 22:33:42 +08:00
|
|
|
<%= render partial: 'projects/show/experiment',
|
|
|
|
locals: { experiment: experiment } %>
|
|
|
|
<% end %>
|
|
|
|
<% if can_create_experiments?(@project) %>
|
|
|
|
<%= render 'projects/show/new_experiment' %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2016-08-09 20:26:08 +08:00
|
|
|
</div>
|
2018-05-08 22:33:42 +08:00
|
|
|
|
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") %>
|
2018-06-06 23:28:04 +08:00
|
|
|
<i data-hook="project-show-js"></i>
|