mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
41 lines
2.2 KiB
Text
41 lines
2.2 KiB
Text
<% provide(:head_title, t("projects.show.head_title", project: h(@project.name)).html_safe) %>
|
|
<% provide(:sidebar_title, experiments_view_mode(@project) == 'archived' ? t("sidebar.experiments.sidebar_title_archived") : t("sidebar.experiments.sidebar_title")) %>
|
|
<% provide(:sidebar_url, sidebar_project_path(@project)) %>
|
|
<% provide(:container_class, 'no-second-nav-container') %>
|
|
|
|
<%= content_for :sidebar do %>
|
|
<%= render partial: 'shared/sidebar/experiments.html.erb', locals: { project: @project, view_mode: experiments_view_mode(@project)} %>
|
|
<% end %>
|
|
|
|
<div id="projectShowWrapper" class="content-pane flexible projects-show <%= experiments_view_mode(@project) %>" data-view-mode="<%= experiments_view_mode(@project) %>">
|
|
<%= render partial: 'projects/show/header' %>
|
|
|
|
<div class="project-show-container">
|
|
<div class="cards-wrapper <%= 'readonly' unless can_manage_project?(@project) %> <%= cards_view_type_class(@current_view_type) %>"
|
|
id="cardsWrapper"
|
|
data-experiments-cards-url="<%= experiments_cards_project_path(@project) %>">
|
|
<!-- list -->
|
|
<div class="table-header">
|
|
<div class="table-header-cell select-all-checkboxes">
|
|
<% if can_manage_project?(@project) %>
|
|
<div class="sci-checkbox-container">
|
|
<input value="1" type="checkbox" class="sci-checkbox select-all">
|
|
<span class="sci-checkbox-label"></span>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<div class="table-header-cell"><%= t('experiments.card.name') %></div>
|
|
<div class="table-header-cell"><%= t('experiments.id') %></div>
|
|
<div class="table-header-cell"><%= t('experiments.card.start_date') %></div>
|
|
<div class="table-header-cell"><%= t('experiments.card.modified_date') %></div>
|
|
<div class="table-header-cell" data-view-mode="archived"><%= t('experiments.card.archived_date') %></div>
|
|
<div class="table-header-cell" data-view-mode="active"><%= t('experiments.card.completed_task') %></div>
|
|
<div class="table-header-cell"><%= t('experiments.card.description') %></div>
|
|
<div class="table-header-cell"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%= javascript_include_tag("projects/show") %>
|
|
<i data-hook="project-show-js"></i>
|