2017-01-12 23:54:15 +08:00
|
|
|
<% provide(:head_title, t("projects.show.head_title", project: h(@project.name)).html_safe) %>
|
2021-02-11 21:16:57 +08:00
|
|
|
<% provide(:sidebar_title, experiments_view_mode(@project) == 'archived' ? t("sidebar.experiments.sidebar_title_archived") : t("sidebar.experiments.sidebar_title")) %>
|
2021-02-02 18:17:29 +08:00
|
|
|
<% provide(:sidebar_url, sidebar_project_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 %>
|
2022-08-31 21:26:10 +08:00
|
|
|
<%= render partial: 'shared/sidebar/experiments', locals: { project: @project, view_mode: experiments_view_mode(@project)} %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<% end %>
|
2016-07-28 22:41:10 +08:00
|
|
|
|
2021-02-03 21:23:38 +08:00
|
|
|
<div id="projectShowWrapper" class="content-pane flexible projects-show <%= experiments_view_mode(@project) %>" data-view-mode="<%= experiments_view_mode(@project) %>">
|
2020-12-17 20:07:30 +08:00
|
|
|
<%= render partial: 'projects/show/header' %>
|
2021-01-29 05:47:08 +08:00
|
|
|
|
|
|
|
<div class="project-show-container">
|
2022-08-31 21:26:10 +08:00
|
|
|
<div class="cards-wrapper <%= 'readonly' unless @project_is_managable %> <%= cards_view_type_class(@current_view_type) %>"
|
2021-02-12 20:25:12 +08:00
|
|
|
id="cardsWrapper"
|
|
|
|
data-experiments-cards-url="<%= experiments_cards_project_path(@project) %>">
|
2021-01-29 05:47:08 +08:00
|
|
|
<!-- list -->
|
|
|
|
<div class="table-header">
|
|
|
|
<div class="table-header-cell select-all-checkboxes">
|
2022-08-31 21:26:10 +08:00
|
|
|
<% if @project_is_managable %>
|
2021-02-12 20:25:12 +08:00
|
|
|
<div class="sci-checkbox-container">
|
|
|
|
<input value="1" type="checkbox" class="sci-checkbox select-all">
|
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2021-01-29 05:47:08 +08:00
|
|
|
</div>
|
|
|
|
<div class="table-header-cell"><%= t('experiments.card.name') %></div>
|
2021-06-18 17:58:03 +08:00
|
|
|
<div class="table-header-cell"><%= t('experiments.id') %></div>
|
2021-01-29 05:47:08 +08:00
|
|
|
<div class="table-header-cell"><%= t('experiments.card.start_date') %></div>
|
|
|
|
<div class="table-header-cell"><%= t('experiments.card.modified_date') %></div>
|
2021-02-04 23:39:29 +08:00
|
|
|
<div class="table-header-cell" data-view-mode="archived"><%= t('experiments.card.archived_date') %></div>
|
2021-02-10 21:50:42 +08:00
|
|
|
<div class="table-header-cell" data-view-mode="active"><%= t('experiments.card.completed_task') %></div>
|
2021-01-29 05:47:08 +08:00
|
|
|
<div class="table-header-cell"><%= t('experiments.card.description') %></div>
|
|
|
|
<div class="table-header-cell"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-05-08 22:33:42 +08:00
|
|
|
</div>
|
2016-08-09 20:26:08 +08:00
|
|
|
</div>
|
2018-05-08 22:33:42 +08:00
|
|
|
|
2022-04-12 21:03:06 +08:00
|
|
|
<template id="experimentPlaceholder">
|
|
|
|
<div class="experiment-placeholder card">
|
|
|
|
<div class="placeholder-element header"></div>
|
|
|
|
<div class="placeholder-body">
|
|
|
|
<% 3.times do |i| %>
|
|
|
|
<div class="placeholder-element line-<%= i %>"></div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="placeholder image-container">
|
|
|
|
<div class="placeholder-element image"></div>
|
|
|
|
<div class="placeholder-element image-text"></div>
|
|
|
|
</div>
|
|
|
|
<div class="placeholder-element footer"></div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="experimentEndOfList">
|
|
|
|
<div class="experiment-list-end-placeholder">
|
|
|
|
<i class="fas fa-flag-checkered"></i>
|
|
|
|
<span><%= t('projects.index.end_of_list_placeholder') %></span>
|
|
|
|
<i class="fas fa-flag-checkered"></i>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
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>
|