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

show breadcrumb in project attributes page

Behrokh Satarnejad555b1418fed0
diff --git a/app/controllers/projects/settings/project_custom_fields_controller.rb b/app/controllers/projects/settings/project_custom_fields_controller.rb
index 9dbcb329fe5..b6bd5798750 100644
--- a/app/controllers/projects/settings/project_custom_fields_controller.rb
+++ b/app/controllers/projects/settings/project_custom_fields_controller.rb
@@ -106,4 +106,10 @@ class Projects::Settings::ProjectCustomFieldsController < Projects::SettingsCont
project_custom_field_section: @project_custom_field_section
)
end
+
+ def breadcrumb_items
+ [{ href: project_overview_path(@project.id), text: @project.name },
+ t("settings.project_attributes.heading")]
+ end
+ helper_method :breadcrumb_items
end
diff --git a/app/views/projects/settings/project_custom_fields/show.html.erb b/app/views/projects/settings/project_custom_fields/show.html.erb
index 748bf6e70c7..d0e42b6b05a 100644
--- a/app/views/projects/settings/project_custom_fields/show.html.erb
+++ b/app/views/projects/settings/project_custom_fields/show.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
overview_url: project_path(@project),
admin_settings_url: admin_settings_project_custom_fields_path
).html_safe } %>
- <%= header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name }, t('settings.project_attributes.heading')]) %>
+ <%= header.with_breadcrumbs(breadcrumb_items) %>
<% end %>
<%= render(Projects::Settings::ProjectCustomFieldSections::IndexComponent.new(
project: @project,