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

page header component in email notifications

Behrokh Satarnejad6e877e1f1172
diff --git a/app/controllers/admin/settings/mail_notifications_settings_controller.rb b/app/controllers/admin/settings/mail_notifications_settings_controller.rb
index 8af36f26c00..434fb6661de 100644
--- a/app/controllers/admin/settings/mail_notifications_settings_controller.rb
+++ b/app/controllers/admin/settings/mail_notifications_settings_controller.rb
@@ -37,13 +37,5 @@ module Admin::Settings
respond_to :html
end
-
- def default_breadcrumb
- t(:"menus.admin.mail_notification")
- 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 6bf512daa04..e4789920feb 100644
--- a/app/views/admin/settings/aggregation_settings/show.html.erb
+++ b/app/views/admin/settings/aggregation_settings/show.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
<%=
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) },
+ header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },
{ href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },
t(:'menus.admin.aggregation')])
end
diff --git a/app/views/admin/settings/mail_notifications_settings/show.html.erb b/app/views/admin/settings/mail_notifications_settings/show.html.erb
index ecf4e2ad6af..dd464dc728d 100644
--- a/app/views/admin/settings/mail_notifications_settings/show.html.erb
+++ b/app/views/admin/settings/mail_notifications_settings/show.html.erb
@@ -29,7 +29,14 @@ See COPYRIGHT and LICENSE files for more details.
<% html_title t(:label_administration), t(:'menus.admin.mail_notification') -%>
-<%= toolbar title: t(:'menus.admin.mail_notification') %>
+<%=
+ render(Primer::OpenProject::PageHeader.new) do |header|
+ header.with_title { t(:'menus.admin.mail_notification') }
+ header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },
+ { href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },
+ t(:'menus.admin.mail_notification')])
+ end
+%>
<%= styled_form_tag(admin_settings_mail_notifications_path, method: :patch) do %>
<% if @deliveries %>