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

28 lines
1.5 KiB
Text
Raw Normal View History

<% provide(:sidebar_title, t("projects.index.navigation_title")) %>
<% provide(:sidebar_url, sidebar_team_path(current_team, project_folder_id: current_folder&.id)) %>
<% provide(:container_class, 'no-second-nav-container') %>
<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(project_folder_id: current_folder&.id, view_mode: :active) %>"
archived-page-url="<%= projects_path(project_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' %>
</div>