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') %>
|
|
|
|
|
2023-10-05 23:39:44 +08:00
|
|
|
<div id="projectsWrapper" class="content-pane flexible projects-index <%= projects_view_mode %>" data-view-mode="<%= projects_view_mode %>" data-e2e="e2e-projects-container">
|
2024-01-16 20:53:41 +08:00
|
|
|
<%= render partial: 'projects/header', locals: { current_folder: current_folder} %>
|
2020-03-13 22:04:56 +08:00
|
|
|
|
2023-11-10 20:34:36 +08:00
|
|
|
<div id="ProjectsList" class="fixed-content-body">
|
|
|
|
<projects-list
|
2023-12-01 07:01:08 +08:00
|
|
|
actions-url="<%= actions_toolbar_projects_path %>"
|
|
|
|
users-filter-url="<%= users_filter_projects_path %>"
|
|
|
|
data-source="<%= projects_path(project_folder_id: current_folder&.id, format: :json) %>"
|
|
|
|
active-page-url="<%= projects_path(roject_folder_id: current_folder&.id, view_mode: :active) %>"
|
|
|
|
archived-page-url="<%= projects_path(roject_folder_id: current_folder&.id, view_mode: :archived) %>"
|
2023-11-24 18:08:28 +08:00
|
|
|
current-view-mode="<%= params[:view_mode] || :active %>"
|
2023-12-01 07:01:08 +08:00
|
|
|
current-folder-id="<%= current_folder&.id %>"
|
2023-11-10 20:34:36 +08:00
|
|
|
create-url="<%= projects_path if can_create_projects?(current_team) %>"
|
|
|
|
create-folder-url="<%= project_folders_path if can_create_project_folders?(current_team) %>"
|
2023-12-01 07:01:08 +08:00
|
|
|
user-roles-url="<%= user_roles_projects_path %>"
|
|
|
|
folders-tree-url="<%= tree_project_folders_path(view_mode: params[:view_mode]) %>"
|
|
|
|
move-to-url="<%= move_to_project_folders_path %>"
|
2023-11-10 20:34:36 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<%= javascript_include_tag 'vue_projects_list' %>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
2018-05-08 22:33:42 +08:00
|
|
|
|
2023-04-26 17:20:10 +08:00
|
|
|
|