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 '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.rb
index 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 Types
def 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]
end
diff --git a/app/components/workflows/page_header_component.rb b/app/components/workflows/page_header_component.rb
index 7d93e1d92c3..0df058b70a1 100644
--- a/app/components/workflows/page_header_component.rb
+++ b/app/components/workflows/page_header_component.rb
@@ -40,7 +40,7 @@ module Workflows
def breadcrumb_items
base_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 == :edit
diff --git a/app/controllers/admin/settings/work_packages_settings_controller.rb b/app/controllers/admin/settings/work_packages_settings_controller.rb
index 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::Settings
class WorkPackagesSettingsController < ::Admin::SettingsController
current_menu_item :show do
- :work_packages_setting
+ :work_packages_settings_general
end
end
end
diff --git a/app/views/admin/settings/work_packages_settings/show.html.erb b/app/views/admin/settings/work_packages_settings/show.html.erb
index 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.erb
index 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 ])
end
diff --git a/app/views/custom_actions/index.html.erb b/app/views/custom_actions/index.html.erb
index 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.erb
index 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") ])
end
diff --git a/app/views/statuses/edit.html.erb b/app/views/statuses/edit.html.erb
index 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])
end
diff --git a/app/views/statuses/index.html.erb b/app/views/statuses/index.html.erb
index 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.erb
index 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)])
end
diff --git a/app/views/types/index.html.erb b/app/views/types/index.html.erb
index 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.erb
index 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)])
end
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index 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_packages
menu.push :types,
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 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.rb
index 599deee6f16..0f580ac17c5 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -490,7 +490,7 @@ Rails.application.routes.draw do
resource :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