Skip to content

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

Rename backlogs menu entry and move categories to the bottom

Henriette Dinger1907b8745cec
diff --git a/app/helpers/project_settings_helper.rb b/app/helpers/project_settings_helper.rb
index 15f4310a0e9..1d314c59f96 100644
--- a/app/helpers/project_settings_helper.rb
+++ b/app/helpers/project_settings_helper.rb
@@ -60,7 +60,8 @@ module ProjectSettingsHelper
{
name: 'categories',
action: { controller: '/project_settings/categories', action: 'show' },
- label: :label_work_package_category_plural
+ label: :label_work_package_category_plural,
+ last: true
},
{
name: 'repository',
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index 679a9da265b..712fc81f483 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -372,6 +372,7 @@ Redmine::MenuManager.map :project_menu do |menu|
node[:action],
caption: node[:label],
parent: :settings,
+ last: node[:last],
if: node[:if]
end
end
diff --git a/modules/backlogs/lib/open_project/backlogs/patches/project_settings_helper_patch.rb b/modules/backlogs/lib/open_project/backlogs/patches/project_settings_helper_patch.rb
index fff388f9f8c..04abd2f522b 100644
--- a/modules/backlogs/lib/open_project/backlogs/patches/project_settings_helper_patch.rb
+++ b/modules/backlogs/lib/open_project/backlogs/patches/project_settings_helper_patch.rb
@@ -38,7 +38,7 @@ module OpenProject::Backlogs::Patches::ProjectSettingsHelperPatch
settings << {
name: :backlogs,
action: { controller: '/backlogs_settings', action: 'show' },
- label: :'backlogs.backlog_settings',
+ label: :label_backlogs,
if: ->(p) { p.module_enabled?('backlogs') }
}
end