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

fixed breadcrumb navigation

Jonas Jabari42f0cfe1d857
diff --git a/app/controllers/admin/settings/project_custom_fields_controller.rb b/app/controllers/admin/settings/project_custom_fields_controller.rb
index 526c449e3bb..eff4a190e16 100644
--- a/app/controllers/admin/settings/project_custom_fields_controller.rb
+++ b/app/controllers/admin/settings/project_custom_fields_controller.rb
@@ -40,7 +40,15 @@ module Admin::Settings
before_action :find_custom_option, only: :delete_option
def default_breadcrumb
- t(:label_project_attributes_plural)
+ if action_name == 'index'
+ t('label_project_attribute_plural')
+ else
+ ActionController::Base.helpers.link_to(t('label_project_attribute_plural'), admin_settings_project_custom_fields_path)
+ end
+ end
+
+ def show_local_breadcrumb
+ true
end
def index
diff --git a/app/controllers/admin/settings/projects_settings_controller.rb b/app/controllers/admin/settings/projects_settings_controller.rb
index 52607951a17..11355769a88 100644
--- a/app/controllers/admin/settings/projects_settings_controller.rb
+++ b/app/controllers/admin/settings/projects_settings_controller.rb
@@ -33,7 +33,7 @@ module Admin::Settings
before_action :validate_enabled_modules, only: :update
def default_breadcrumb
- t(:label_project_plural)
+ t(:label_project_settings)
end
private
@@ -50,7 +50,7 @@ module Admin::Settings
I18n.t(
'settings.projects.missing_dependencies',
module: I18n.t("project_module_#{m[:name]}"),
- dependencies: m[:dependencies].map { |dep|I18n.t("project_module_#{dep}") }.join(', ')
+ dependencies: m[:dependencies].map { |dep| I18n.t("project_module_#{dep}") }.join(', ')
)
end
diff --git a/app/views/admin/settings/project_custom_fields/edit.html.erb b/app/views/admin/settings/project_custom_fields/edit.html.erb
index 7b24dc2c02a..caa93c591c0 100644
--- a/app/views/admin/settings/project_custom_fields/edit.html.erb
+++ b/app/views/admin/settings/project_custom_fields/edit.html.erb
@@ -31,6 +31,8 @@ See COPYRIGHT and LICENSE files for more details.
'admin--custom-fields-format-value': @custom_field.field_format
%>
+<% local_assigns[:additional_breadcrumb] = @custom_field.name %>
+
<%= render(Settings::ProjectCustomFields::EditFormHeaderComponent.new(custom_field: @custom_field)) %>
<%= error_messages_for 'custom_field' %>
diff --git a/app/views/admin/settings/projects_settings/show.html.erb b/app/views/admin/settings/projects_settings/show.html.erb
index 6fe0ef95677..125c7db00ca 100644
--- a/app/views/admin/settings/projects_settings/show.html.erb
+++ b/app/views/admin/settings/projects_settings/show.html.erb
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= toolbar title: t(:label_project_plural) %>
+<%= toolbar title: t(:label_project_settings) %>
<%= styled_form_tag(admin_settings_projects_path, method: :patch) do %>
<section class="form--section">