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

use page header component in aggregation page

Behrokh Satarnejade3731d652928
diff --git a/app/controllers/admin/settings/aggregation_settings_controller.rb b/app/controllers/admin/settings/aggregation_settings_controller.rb
index 56ebfd5880c..4e1277d6030 100644
--- a/app/controllers/admin/settings/aggregation_settings_controller.rb
+++ b/app/controllers/admin/settings/aggregation_settings_controller.rb
@@ -35,13 +35,5 @@ module Admin::Settings
def show
respond_to :html
end
-
- def default_breadcrumb
- t(:"menus.admin.aggregation")
- end
-
- def show_local_breadcrumb
- true
- end
end
end
diff --git a/app/views/admin/settings/aggregation_settings/show.html.erb b/app/views/admin/settings/aggregation_settings/show.html.erb
index 2e7fc0b2b36..6bf512daa04 100644
--- a/app/views/admin/settings/aggregation_settings/show.html.erb
+++ b/app/views/admin/settings/aggregation_settings/show.html.erb
@@ -29,7 +29,14 @@ See COPYRIGHT and LICENSE files for more details.
<% html_title t(:label_administration), t(:'menus.admin.aggregation') -%>
-<%= toolbar title: t(:'menus.admin.aggregation') %>
+<%=
+ render(Primer::OpenProject::PageHeader.new) do |header|
+ header.with_title { t(:'menus.admin.aggregation') }
+ header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration"), text: t(:label_administration) },
+ { href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },
+ t(:'menus.admin.aggregation')])
+ end
+%>
<%= styled_form_tag(admin_settings_aggregation_path, method: :patch) do %>
<div class="form--field">