From 051a53f98e2a32a468a7b5c70926016c162c7c47 Mon Sep 17 00:00:00 2001 From: Behrokh Satarnejad Date: Thu, 28 Mar 2024 20:22:05 +0100 Subject: [PATCH] project attribute edit header update with new breadcrumb --- .../project_custom_fields/edit_form_header_component.html.erb | 4 ++-- .../project_custom_fields/edit_form_header_component.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb b/app/components/settings/project_custom_fields/edit_form_header_component.html.erb index 0510a87b407e..17cda2a8a7c2 100644 --- a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb +++ b/app/components/settings/project_custom_fields/edit_form_header_component.html.erb @@ -27,9 +27,9 @@ See COPYRIGHT and LICENSE files for more details. ++#%> <%= - render(Primer::Ï.new) do |header| + render(Primer::OpenProject::PageHeader.new) do |header| header.with_title(variant: :medium) { @custom_field.name } - header.with_description { t('settings.project_attributes.edit.description') } + header.with_description { t("settings.project_attributes.edit.description") } header.with_breadcrumbs(breadcrumbs_items) end %> diff --git a/app/components/settings/project_custom_fields/edit_form_header_component.rb b/app/components/settings/project_custom_fields/edit_form_header_component.rb index 85aad8e8457b..62a47fc69377 100644 --- a/app/components/settings/project_custom_fields/edit_form_header_component.rb +++ b/app/components/settings/project_custom_fields/edit_form_header_component.rb @@ -36,7 +36,7 @@ def initialize(custom_field:) end def breadcrumbs_items - [{ href: project_overview_path(@project.id), text: @project.name }, + [{ href: admin_settings_project_custom_fields_path, text: t("label_administration") }, t("settings.project_attributes.heading")] end end