scinote-web/app/views/projects/show.html.erb

66 lines
3 KiB
Text
Raw Normal View History

<% 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 %>
2022-08-31 21:26:10 +08:00
<%= render partial: 'shared/sidebar/experiments', 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">
2022-08-31 21:26:10 +08:00
<div class="cards-wrapper <%= 'readonly' unless @project_is_managable %> <%= 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">
2022-08-31 21:26:10 +08:00
<% if @project_is_managable %>
<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>
2016-08-09 20:26:08 +08:00
</div>
<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") %>
<i data-hook="project-show-js"></i>