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 SubHeader

Oliver Günthercd6959700596
diff --git a/modules/auth_saml/app/views/saml/providers/index.html.erb b/modules/auth_saml/app/views/saml/providers/index.html.erb
index 79ec7749387..98c08284058 100644
--- a/modules/auth_saml/app/views/saml/providers/index.html.erb
+++ b/modules/auth_saml/app/views/saml/providers/index.html.erb
@@ -1,24 +1,23 @@
<% html_title t(:label_administration), t('saml.providers.plural') %>
-<%=
- content_for :content_header do
- render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t('saml.providers.plural') }
- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },
- t('saml.providers.plural')])
+<%= content_for :content_header do %>
+ <%= render(Primer::OpenProject::PageHeader.new) do |header|
+ header.with_title { t('saml.providers.plural') }
+ header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },
+ t('saml.providers.plural')])
+ end %>
- header.with_action_button(scheme: :primary,
- aria: { label: t('saml.providers.label_add_new') },
- mobile_icon: :plus,
- mobile_label: t('saml.providers.label_add_new'),
- tag: :a,
- href: new_saml_provider_path) do |button|
- button.with_leading_visual_icon(icon: :plus)
- t('saml.providers.singular')
- end
+ <%= render(Primer::OpenProject::SubHeader.new) do |subheader|
+ subheader.with_action_button(scheme: :primary,
+ aria: { label: I18n.t('saml.providers.label_add_new') },
+ title: I18n.t('saml.providers.label_add_new'),
+ tag: :a,
+ href: new_saml_provider_path) do |button|
+ button.with_leading_visual_icon(icon: :plus)
+ t('saml.providers.singular')
end
end
-%>
-
+ %>
+<% end %>
<%= render ::Saml::Providers::TableComponent.new(rows: providers) %>