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 correct breadcrumb in create a new storage page

Behrokh Satarnejadc662b50ec7d7
diff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rb
index 7491bd2c6bd..5c600ebd01e 100644
--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb
+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb
@@ -208,7 +208,7 @@ class Storages::Admin::StoragesController < ApplicationController
# See: default_breadcrum above
# Defines whether to show breadcrumbs on the page or not.
def show_local_breadcrumb
- true
+ false
end
private
diff --git a/modules/storages/app/views/storages/admin/storages/new.html.erb b/modules/storages/app/views/storages/admin/storages/new.html.erb
index 1cee2eedb9f..6c592bb337f 100644
--- a/modules/storages/app/views/storages/admin/storages/new.html.erb
+++ b/modules/storages/app/views/storages/admin/storages/new.html.erb
@@ -12,11 +12,9 @@
<%= label_new_file_storage %>
<% end %>
- <% header.with_back_button(href: admin_settings_storages_path, 'aria-label': I18n.t("button_back")) %>
-
- <% header.with_parent_link(href: admin_settings_storages_path, 'aria-label': I18n.t("button_back")) do %>
- <%= t(:project_module_storages) %>
- <% end %>
+ <% header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration")},
+ { href: admin_settings_storages_path, text: t(:project_module_storages) },
+ label_new_file_storage]) %>
<% header.with_description(test_selector: 'storage-new-page-header--description') do %>
<%=