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

re-apply fixes from #17899

Klaus Zanders4a3b4cd8ce8f
diff --git a/modules/costs/app/views/admin/cost_types/edit.html.erb b/modules/costs/app/views/admin/cost_types/edit.html.erb
index 63e5b98a74b..cb39d070ca0 100644
--- a/modules/costs/app/views/admin/cost_types/edit.html.erb
+++ b/modules/costs/app/views/admin/cost_types/edit.html.erb
@@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details.
header.with_breadcrumbs(
[
{ href: admin_index_path, text: t("label_administration") },
- { href: url_for({ controller: "/admin/costs_settings", action: "show" }), text: t(:project_module_costs) },
+ { href: admin_costs_settings_path, text: t(:project_module_costs) },
{ href: admin_cost_types_path, text: t(:label_cost_type_plural) },
title
]
diff --git a/modules/costs/app/views/admin/cost_types/index.html.erb b/modules/costs/app/views/admin/cost_types/index.html.erb
index b8d7e812f3b..b240dfb215e 100644
--- a/modules/costs/app/views/admin/cost_types/index.html.erb
+++ b/modules/costs/app/views/admin/cost_types/index.html.erb
@@ -35,7 +35,7 @@ See COPYRIGHT and LICENSE files for more details.
header.with_breadcrumbs(
[
{ href: admin_index_path, text: t("label_administration") },
- { href: url_for({ controller: "/admin/costs_settings", action: "show" }), text: t(:project_module_costs) },
+ { href: admin_costs_settings_path, text: t(:project_module_costs) },
I18n.t(:label_cost_type_plural)
]
)
diff --git a/modules/costs/app/views/admin/costs_settings/show.html.erb b/modules/costs/app/views/admin/costs_settings/show.html.erb
index 89ed6c03567..2194d9791d8 100644
--- a/modules/costs/app/views/admin/costs_settings/show.html.erb
+++ b/modules/costs/app/views/admin/costs_settings/show.html.erb
@@ -31,11 +31,12 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t("plugin_costs.name") }
+ header.with_title { t(:label_setting_plural) }
header.with_breadcrumbs(
[
{ href: admin_index_path, text: t("label_administration") },
- t("plugin_costs.name")
+ { href: admin_costs_settings_path, text: t(:project_module_costs) },
+ t(:label_setting_plural)
]
)
end
diff --git a/modules/costs/app/views/admin/time_entry_activities/index.html.erb b/modules/costs/app/views/admin/time_entry_activities/index.html.erb
index 699e1c177ac..e66471f304e 100644
--- a/modules/costs/app/views/admin/time_entry_activities/index.html.erb
+++ b/modules/costs/app/views/admin/time_entry_activities/index.html.erb
@@ -35,7 +35,7 @@ See COPYRIGHT and LICENSE files for more details.
header.with_breadcrumbs(
[
{ href: admin_index_path, text: t("label_administration") },
- { href: url_for({ controller: "/admin/costs_settings", action: "show" }), text: t(:project_module_costs) },
+ { href: admin_costs_settings_path, text: t(:project_module_costs) },
I18n.t(:enumeration_activities)
]
)