From 1907b8745cecb8af5c348eb5e2e6498c8c47f0ba Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Thu, 6 Feb 2020 14:04:30 +0100 Subject: [PATCH] Rename backlogs menu entry and move categories to the bottom --- app/helpers/project_settings_helper.rb | 3 ++- config/initializers/menus.rb | 1 + .../backlogs/patches/project_settings_helper_patch.rb | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/helpers/project_settings_helper.rb b/app/helpers/project_settings_helper.rb index 15f4310a0e..1d314c59f9 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 679a9da265..712fc81f48 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 fff388f9f8..04abd2f522 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