OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add action menu to project overview
Oliver Günther06ceb3e9ad7d
diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 8a7351f6ebc..e30fad75407 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -2153,6 +2153,7 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}label_membership_plural: "Memberships"lable_membership_added: "Member added"lable_membership_updated: "Member updated"+ label_menu: "Menu"label_menu_badge:pre_alpha: "pre-alpha"alpha: "alpha"@@ -2254,6 +2255,7 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}label_percent_complete: "% Complete"label_project_activity: "Project activity"label_project_attribute_plural: "Project attributes"+ label_project_attribute_manage_link: "Manage project attributes"label_project_count: "Total number of projects"label_project_copy_notifications: "Send email notifications during the project copy"label_project_latest: "Latest projects"diff --git a/modules/overviews/app/views/overviews/overviews/show.html.erb b/modules/overviews/app/views/overviews/overviews/show.html.erbindex 2316a6d7bb3..e8f121e7048 100644--- a/modules/overviews/app/views/overviews/overviews/show.html.erb+++ b/modules/overviews/app/views/overviews/overviews/show.html.erb@@ -26,6 +26,33 @@test_selector: 'project-favorite-button')end++ header.with_action_menu(menu_arguments: { anchor_align: :end },+ button_arguments: { icon: "op-kebab-vertical", "aria-label": t(:label_menu) }) do |menu|++ if User.current.allowed_in_project?(:select_project_custom_fields, @project)+ menu.with_item(+ label: t(:label_project_attribute_manage_link),+ href: project_settings_project_custom_fields_path(@project),+ data: { turbo: false }+ ) do |item|+ item.with_leading_visual_icon(icon: :pencil)+ end+ end++ if User.current.allowed_in_project?(:archive_project, @project)+ menu.with_item(+ label: t(:label_archive_project),+ href: project_archive_path(@project, status: '', name: @project.name),+ content_arguments: {+ data: { method: :post, turbo: false, confirm: t('project.archive.are_you_sure', name: @project.name) },+ }+ ) do |item|+ item.with_leading_visual_icon(icon: :lock)+ end+ end++ endend%>