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
Remove nesting of modules for Backlogs and GitHub integration as they only have one submenu entry
Henriette Dargea144d669a2e3
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rbindex 2f0ca37578a..38a2df63ca8 100644--- a/config/initializers/menus.rb+++ b/config/initializers/menus.rb@@ -542,12 +542,6 @@ Redmine::MenuManager.map :admin_menu do |menu|if: Proc.new { User.current.admin? },caption: :label_backlogs,icon: "op-backlogs"-- menu.push :backlogs_settings,- { controller: "/backlogs_settings", action: :show },- if: Proc.new { User.current.admin? },- caption: :label_setting_plural,- parent: :admin_backlogsendRedmine::MenuManager.map :project_menu do |menu|diff --git a/modules/backlogs/app/controllers/backlogs_settings_controller.rb b/modules/backlogs/app/controllers/backlogs_settings_controller.rbindex fbf39f9bd0d..43aa34c8565 100644--- a/modules/backlogs/app/controllers/backlogs_settings_controller.rb+++ b/modules/backlogs/app/controllers/backlogs_settings_controller.rb@@ -28,7 +28,7 @@class BacklogsSettingsController < ApplicationControllerlayout "admin"- menu_item :backlogs_settings+ menu_item :admin_backlogsbefore_action :require_adminbefore_action :check_valid_settings, only: :update@@ -43,12 +43,10 @@ class BacklogsSettingsController < ApplicationControllerenddef show_local_breadcrumb- true+ falseend- def default_breadcrumb- I18n.t(:label_backlogs)- end+ def default_breadcrumb; endprivatediff --git a/modules/backlogs/app/views/backlogs_settings/show.html.erb b/modules/backlogs/app/views/backlogs_settings/show.html.erbindex b27335d10fa..a65cfa695ef 100644--- a/modules/backlogs/app/views/backlogs_settings/show.html.erb+++ b/modules/backlogs/app/views/backlogs_settings/show.html.erb@@ -29,6 +29,14 @@ See COPYRIGHT and LICENSE files for more details.<% html_title t(:label_administration), t(:label_backlogs) %>+<%=+ render(Primer::OpenProject::PageHeader.new) do |header|+ header.with_title { t(:label_backlogs) }+ header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },+ t(:label_backlogs)])+ end+%>+<%= form_tag(:admin_backlogs_settings, method: :put, name: 'admin_backlogs_form') do %><div class="form--field"><%= styled_label_tag("settings[story_types]", t(:backlogs_story_type)) %>diff --git a/modules/github_integration/app/controllers/deploy_targets_controller.rb b/modules/github_integration/app/controllers/deploy_targets_controller.rbindex ed64c7d88fb..83f088978bf 100644--- a/modules/github_integration/app/controllers/deploy_targets_controller.rb+++ b/modules/github_integration/app/controllers/deploy_targets_controller.rb@@ -29,6 +29,8 @@class DeployTargetsController < ApplicationControllerlayout "admin"+ menu_item :admin_github_integration+before_action :require_admindef indexdiff --git a/modules/github_integration/app/views/deploy_targets/index.html.erb b/modules/github_integration/app/views/deploy_targets/index.html.erbindex 826c020e7f2..80d232344dc 100644--- a/modules/github_integration/app/views/deploy_targets/index.html.erb+++ b/modules/github_integration/app/views/deploy_targets/index.html.erb@@ -31,10 +31,9 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title { t(:label_deploy_target_plural) }+ header.with_title { t(:label_github_integration) }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: deploy_targets_path, text: t(:label_github_integration) },- t(:label_deploy_target_plural)])+ t(:label_github_integration)])end%>diff --git a/modules/github_integration/app/views/deploy_targets/new.html.erb b/modules/github_integration/app/views/deploy_targets/new.html.erbindex ee5fee6ac8d..84c87ace1bf 100644--- a/modules/github_integration/app/views/deploy_targets/new.html.erb+++ b/modules/github_integration/app/views/deploy_targets/new.html.erb@@ -34,7 +34,6 @@ See COPYRIGHT and LICENSE files for more details.header.with_title { t(:label_deploy_target_new) }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },{ href: deploy_targets_path, text: t(:label_github_integration) },- { href: deploy_targets_path, text: t(:label_deploy_target_plural) },t(:label_deploy_target_new)])end%>diff --git a/modules/github_integration/lib/open_project/github_integration/engine.rb b/modules/github_integration/lib/open_project/github_integration/engine.rbindex 4767b08874e..b49776b7484 100644--- a/modules/github_integration/lib/open_project/github_integration/engine.rb+++ b/modules/github_integration/lib/open_project/github_integration/engine.rb@@ -75,14 +75,6 @@ module OpenProject::GithubIntegrationenabled: -> { OpenProject::FeatureDecisions.deploy_targets_active? } # can only be enable at start-timeend- menu :admin_menu,- :deploy_targets,- { controller: "/deploy_targets", action: "index" },- if: ->(*) { OpenProject::FeatureDecisions.deploy_targets_active? && User.current.admin? },- parent: :admin_github_integration,- caption: :label_deploy_target_plural,- icon: "cloud"-menu :work_package_split_view,:github,{ tab: :github },