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
Fix PageHeader for Time&Costs module
Henriette Darge5055dc149c28
diff --git a/modules/costs/app/views/cost_types/edit.html.erb b/modules/costs/app/views/cost_types/edit.html.erbindex 3bc92ce237b..72e9ee9851e 100644--- a/modules/costs/app/views/cost_types/edit.html.erb+++ b/modules/costs/app/views/cost_types/edit.html.erb@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.<% title = @cost_type.name %><% else %><% html_title t(:label_administration), t(:label_cost_type_plural) %>- <% title = t(:label_new) + " " + I18n.t("activerecord.models.cost_type.one") %>+ <% title = "#{t(:label_new)} #{I18n.t('activerecord.models.cost_type.one')}" %><% end %><%=@@ -40,7 +40,7 @@ See COPYRIGHT and LICENSE files for more details.header.with_title { title }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: url_for({ controller: "/admin/settings", action: "show_plugin", id: :costs }), text: t(:project_module_costs) },+ { href: admin_costs_settings_path, text: t(:project_module_costs) },{ href: cost_types_path, text: t(:label_cost_type_plural) },title])diff --git a/modules/costs/app/views/cost_types/index.html.erb b/modules/costs/app/views/cost_types/index.html.erbindex 4b05394478a..67afdaceb9f 100644--- a/modules/costs/app/views/cost_types/index.html.erb+++ b/modules/costs/app/views/cost_types/index.html.erb@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.header.with_title { I18n.t(:label_cost_type_plural) }header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: url_for({ controller: "/admin/settings", action: "show_plugin", id: :costs }), text: t(:project_module_costs) },+ { href: admin_costs_settings_path, text: t(:project_module_costs) },I18n.t(:label_cost_type_plural)])enddiff --git a/modules/costs/app/views/costs_settings/show.html.erb b/modules/costs/app/views/costs_settings/show.html.erbindex 26f90488ddb..bd99c1b0e45 100644--- a/modules/costs/app/views/costs_settings/show.html.erb+++ b/modules/costs/app/views/costs_settings/show.html.erb@@ -31,10 +31,11 @@ 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%>