2021-01-07 05:20:50 +08:00
|
|
|
<div class="card folder-card"
|
|
|
|
data-id="<%= folder.id %>"
|
|
|
|
data-edit-url="<%= edit_project_folder_path(folder) %>"
|
2022-05-19 19:46:03 +08:00
|
|
|
data-editable="<%= can_manage_team?(current_team) %>"
|
|
|
|
data-moveable="<%= can_manage_team?(current_team) %>"
|
2021-01-19 18:22:53 +08:00
|
|
|
data-archivable="false"
|
2021-01-22 02:42:25 +08:00
|
|
|
data-restorable="false"
|
2022-05-19 19:46:03 +08:00
|
|
|
data-deletable="<%= can_delete_project_folder?(folder) && can_manage_team?(current_team) %>">
|
2021-01-25 17:26:10 +08:00
|
|
|
<div class="checkbox-cell table-cell">
|
2020-11-03 15:07:17 +08:00
|
|
|
<div class="sci-checkbox-container">
|
2020-11-13 21:39:10 +08:00
|
|
|
<input value="1" type="checkbox" class="sci-checkbox folder-card-selector">
|
2020-11-03 15:07:17 +08:00
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-22 21:41:37 +08:00
|
|
|
<%= link_to folder.archived_branch? ? project_folder_path(folder, view_mode: :archived) : project_folder_path(folder),
|
2021-01-08 00:02:25 +08:00
|
|
|
class: 'project-folder-link',
|
|
|
|
data: {
|
|
|
|
projects_cards_url: project_folder_cards_url(folder),
|
|
|
|
sidebar_url: sidebar_team_path(current_team, project_folder_id: folder.id)
|
|
|
|
} do %>
|
|
|
|
<div class="icon-folder">
|
2023-06-15 21:12:51 +08:00
|
|
|
<i class="sn-icon sn-icon-folder"></i>
|
2021-01-08 00:02:25 +08:00
|
|
|
</div>
|
2021-01-25 17:26:10 +08:00
|
|
|
<div class="name table-cell" title="<%= folder.name %>">
|
2023-06-15 21:12:51 +08:00
|
|
|
<i class="sn-icon mini sn-icon-mini-folder-left mr-1"></i>
|
2021-01-08 00:02:25 +08:00
|
|
|
<%= folder.name %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2023-06-22 16:38:36 +08:00
|
|
|
|
|
|
|
<% 5.times do %>
|
|
|
|
<div class="name table-cell">
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2020-11-03 15:07:17 +08:00
|
|
|
<div class="description">
|
2020-11-09 23:16:09 +08:00
|
|
|
<%= t('projects.index.folder.description', projects_count: folder.projects_count, folders_count: folder.folders_count) %>
|
2020-11-03 15:07:17 +08:00
|
|
|
</div>
|
|
|
|
</div>
|