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

project attribute edit header update with new breadcrumb

Behrokh Satarnejad051a53f98e2a
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 0510a87b407..17cda2a8a7c 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 85aad8e8457..62a47fc6937 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 @@ module Settings
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