2020-12-08 23:07:26 +08:00
|
|
|
<% provide(:sidebar_title, t("projects.index.navigation_title")) %>
|
2021-01-19 18:28:59 +08:00
|
|
|
<% provide(:sidebar_url, sidebar_team_path(current_team, project_folder_id: current_folder&.id)) %>
|
2020-12-08 15:30:47 +08:00
|
|
|
<% provide(:container_class, 'no-second-nav-container') %>
|
|
|
|
|
|
|
|
<%= content_for :sidebar do %>
|
2021-01-12 17:51:17 +08:00
|
|
|
<%= render partial: 'shared/sidebar/projects', locals: { team: current_team, sort: nil, view_mode: projects_view_mode } if current_team %>
|
2020-12-08 15:30:47 +08:00
|
|
|
<% end %>
|
|
|
|
|
2021-01-13 21:28:18 +08:00
|
|
|
<div id="projectsWrapper" class="content-pane flexible projects-index <%= projects_view_mode %>" data-view-mode="<%= projects_view_mode %>">
|
2021-02-05 18:04:58 +08:00
|
|
|
<%= render partial: 'projects/index/header', locals: { current_folder: current_folder} %>
|
2020-03-13 22:04:56 +08:00
|
|
|
|
|
|
|
<span style="display: none;" data-hook="projects-index-html"></span>
|
|
|
|
|
2020-12-14 22:54:18 +08:00
|
|
|
<%= render partial: 'projects/index/modals/edit_modal' %>
|
2021-01-06 22:02:26 +08:00
|
|
|
<%= render partial: 'projects/index/modals/move_to_modal' %>
|
2020-10-26 20:42:32 +08:00
|
|
|
<%= render partial: 'projects/index/modals/manage_users' %>
|
|
|
|
<%= render partial: 'projects/index/modals/export_projects' %>
|
2018-11-14 18:33:27 +08:00
|
|
|
|
2020-11-03 15:07:17 +08:00
|
|
|
<div class="projects-container">
|
2022-12-03 00:10:03 +08:00
|
|
|
<div class="cards-wrapper <%= cards_view_type_class(@current_view_type) %>"
|
2021-02-11 18:50:59 +08:00
|
|
|
id="cardsWrapper"
|
|
|
|
data-projects-cards-url="<%= @current_folder ? project_folder_cards_url(@current_folder) : cards_projects_url %>">
|
2020-11-03 15:07:17 +08:00
|
|
|
<div class="table-header">
|
|
|
|
<div class="table-header-cell select-all-checkboxes">
|
|
|
|
<div class="sci-checkbox-container">
|
|
|
|
<input value="1" type="checkbox" class="sci-checkbox select-all">
|
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</div>
|
2018-10-01 21:39:42 +08:00
|
|
|
</div>
|
2020-11-03 15:07:17 +08:00
|
|
|
<div class="table-header-cell"><%= t('.card.name') %></div>
|
2022-09-13 17:24:06 +08:00
|
|
|
<div class="table-header-cell"><%= t('.card.id') %></div>
|
2020-11-03 15:07:17 +08:00
|
|
|
<div class="table-header-cell"><%= t('.card.start_date') %></div>
|
2022-12-09 16:57:30 +08:00
|
|
|
<div class="table-header-cell" data-view-mode="archived"><%= t('.card.archived_date') %></div>
|
2020-11-03 15:07:17 +08:00
|
|
|
<div class="table-header-cell"><%= t('.card.visibility') %></div>
|
|
|
|
<div class="table-header-cell"><%= t('.card.users') %></div>
|
|
|
|
<div class="table-header-cell"></div>
|
2018-09-27 16:43:44 +08:00
|
|
|
</div>
|
2018-10-24 09:34:13 +08:00
|
|
|
</div>
|
2023-04-26 17:20:10 +08:00
|
|
|
|
|
|
|
<div id="actionToolbar" data-behaviour="vue">
|
|
|
|
<action-toolbar actions-url="<%= actions_toolbar_projects_url %>" />
|
|
|
|
</div>
|
2018-05-25 23:14:22 +08:00
|
|
|
</div>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
2018-05-08 22:33:42 +08:00
|
|
|
|
2022-04-07 18:22:52 +08:00
|
|
|
<template id="projectPlaceholder">
|
|
|
|
<div class="project-placeholder card">
|
|
|
|
<% 4.times do |i| %>
|
|
|
|
<div class="placeholder-element line-<%= i %>"></div>
|
|
|
|
<% end %>
|
|
|
|
<% 3.times do |i| %>
|
|
|
|
<div class="placeholder-element circle circle-<%= i %>"></div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="projectEndOfList">
|
|
|
|
<div class="project-list-end-placeholder">
|
|
|
|
<i class="fas fa-flag-checkered"></i>
|
|
|
|
<span><%= t('.end_of_list_placeholder') %></span>
|
|
|
|
<i class="fas fa-flag-checkered"></i>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-04-28 16:33:19 +08:00
|
|
|
<%= javascript_include_tag "vue_components_action_toolbar" %>
|
2018-07-19 23:56:42 +08:00
|
|
|
<%= javascript_include_tag "projects/index" %>
|
2023-04-26 17:20:10 +08:00
|
|
|
|