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
Rename 'Work packages settings' page as 'General'
Christophe Bliarddde1cb37da5c
diff --git a/app/components/types/edit_page_header_component.rb b/app/components/types/edit_page_header_component.rbindex 950c93203bf..ad254afd81b 100644--- a/app/components/types/edit_page_header_component.rb+++ b/app/components/types/edit_page_header_component.rb@@ -42,7 +42,7 @@ module Typesdef breadcrumb_items[{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },{ href: types_path, text: t(:label_type_plural) },@type.name]enddiff --git a/app/components/workflows/page_header_component.rb b/app/components/workflows/page_header_component.rbindex 7d93e1d92c3..0df058b70a1 100644--- a/app/components/workflows/page_header_component.rb+++ b/app/components/workflows/page_header_component.rb@@ -40,7 +40,7 @@ module Workflowsdef breadcrumb_itemsbase_items = [{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },title]if @state == :editdiff --git a/app/controllers/admin/settings/work_packages_settings_controller.rb b/app/controllers/admin/settings/work_packages_settings_controller.rbindex d2f1f369f00..20e9004c6d9 100644--- a/app/controllers/admin/settings/work_packages_settings_controller.rb+++ b/app/controllers/admin/settings/work_packages_settings_controller.rb@@ -29,7 +29,7 @@module Admin::Settingsclass WorkPackagesSettingsController < ::Admin::SettingsControllercurrent_menu_item :show do- :work_packages_setting+ :work_packages_settings_generalendendenddiff --git a/app/views/admin/settings/work_packages_settings/show.html.erb b/app/views/admin/settings/work_packages_settings/show.html.erbindex 24865fffc3c..06610ce1712 100644--- a/app/views/admin/settings/work_packages_settings/show.html.erb+++ b/app/views/admin/settings/work_packages_settings/show.html.erb@@ -27,14 +27,14 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<% html_title t(:label_administration), t(:label_work_packages_settings) -%>+<% html_title t(:label_administration), t(:label_work_package_plural), t(:label_general) -%><%=render Primer::OpenProject::PageHeader.new do |header|- header.with_title { t(:label_work_packages_settings) }+ header.with_title { t(:label_general) }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },- t(:label_work_packages_settings)])+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ t(:label_general)])end%>diff --git a/app/views/custom_actions/edit.html.erb b/app/views/custom_actions/edit.html.erbindex 6c6a563ca8c..9005be612aa 100644--- a/app/views/custom_actions/edit.html.erb+++ b/app/views/custom_actions/edit.html.erb@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.render Primer::OpenProject::PageHeader.new do |header|header.with_title { @custom_action.name }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },{ href: custom_actions_path, text: t("custom_actions.plural") },@custom_action.name ])enddiff --git a/app/views/custom_actions/index.html.erb b/app/views/custom_actions/index.html.erbindex 7b56c168457..f391825bb69 100644--- a/app/views/custom_actions/index.html.erb+++ b/app/views/custom_actions/index.html.erb@@ -4,7 +4,7 @@render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("custom_actions.plural") }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },t("custom_actions.plural") ])end%>diff --git a/app/views/custom_actions/new.html.erb b/app/views/custom_actions/new.html.erbindex f124a55d65b..50b2cebfa62 100644--- a/app/views/custom_actions/new.html.erb+++ b/app/views/custom_actions/new.html.erb@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("custom_actions.new") }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },{ href: custom_actions_path, text: t("custom_actions.plural") },t("custom_actions.new") ])enddiff --git a/app/views/statuses/edit.html.erb b/app/views/statuses/edit.html.erbindex d955e4ce3c2..428fe61dd96 100644--- a/app/views/statuses/edit.html.erb+++ b/app/views/statuses/edit.html.erb@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.render Primer::OpenProject::PageHeader.new do |header|header.with_title { @status.name }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },{ href: statuses_path, text: t(:label_status) },@status.name])enddiff --git a/app/views/statuses/index.html.erb b/app/views/statuses/index.html.erbindex 5bbbfe24fc4..cf0dbfb9369 100644--- a/app/views/statuses/index.html.erb+++ b/app/views/statuses/index.html.erb@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t(:label_status) }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },I18n.t(:label_status)])end%>diff --git a/app/views/statuses/new.html.erb b/app/views/statuses/new.html.erbindex a3537b90d16..8b5b660713a 100644--- a/app/views/statuses/new.html.erb+++ b/app/views/statuses/new.html.erb@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_work_package_status_new) }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },{ href: statuses_path, text: t(:label_status) },t(:label_work_package_status_new)])enddiff --git a/app/views/types/index.html.erb b/app/views/types/index.html.erbindex 7794772696f..1b8856b626e 100644--- a/app/views/types/index.html.erb+++ b/app/views/types/index.html.erb@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_type_plural) }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },t(:label_type_plural)])end%>diff --git a/app/views/types/new.html.erb b/app/views/types/new.html.erbindex 44eee4a52a3..60cc30a16a0 100644--- a/app/views/types/new.html.erb+++ b/app/views/types/new.html.erb@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_type_new) }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_package_tracking_path, text: t(:label_work_package_plural) },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },{ href: types_path, text: t(:label_type_plural) },t(:label_type_new)])enddiff --git a/config/initializers/menus.rb b/config/initializers/menus.rbindex 8800c3d6a77..e07c9ca255d 100644--- a/config/initializers/menus.rb+++ b/config/initializers/menus.rb@@ -305,10 +305,10 @@ Redmine::MenuManager.map :admin_menu do |menu|caption: :label_work_package_plural,icon: "op-view-list"- menu.push :work_packages_setting,+ menu.push :work_packages_settings_general,{ controller: "/admin/settings/work_packages_settings", action: :show },if: Proc.new { User.current.admin? },- caption: :label_work_packages_settings,+ caption: :label_general,parent: :admin_work_packagesmenu.push :types,diff --git a/config/locales/en.yml b/config/locales/en.ymlindex d647c65ab1d..a6fdc41e63b 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -2598,7 +2598,6 @@ en:label_work_package_new: "New work package"label_work_package_edit: "Edit work package %{name}"label_work_package_plural: "Work packages"- label_work_packages_settings: "Work packages settings"label_work_package_status: "Work package status"label_work_package_status_new: "New status"label_work_package_status_plural: "Work package statuses"diff --git a/config/routes.rb b/config/routes.rbindex 599deee6f16..0f580ac17c5 100644--- a/config/routes.rb+++ b/config/routes.rb@@ -490,7 +490,7 @@ Rails.application.routes.draw doresource :api, controller: "/admin/settings/api_settings", only: %i[show update]# It is important to have this named something else than "work_packages".# Otherwise the angular ui-router will also recognize that as a WorkPackage page and apply according classes.- resource :work_package_tracking, controller: "/admin/settings/work_packages_settings", only: %i[show update]+ resource :work_packages_general, controller: "/admin/settings/work_packages_settings", only: %i[show update]resource :projects, controller: "/admin/settings/projects_settings", only: %i[show update]resource :new_project, controller: "/admin/settings/new_project_settings", only: %i[show update]resources :project_custom_fields, controller: "/admin/settings/project_custom_fields" do