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

remove show default breadcrumb method in some components

Behrokh Satarnejada7ebc43bfe6e
diff --git a/app/controllers/admin/attachments/quarantined_attachments_controller.rb b/app/controllers/admin/attachments/quarantined_attachments_controller.rb
index 6df31b1b4e8..233bc5e3e64 100644
--- a/app/controllers/admin/attachments/quarantined_attachments_controller.rb
+++ b/app/controllers/admin/attachments/quarantined_attachments_controller.rb
@@ -51,10 +51,6 @@ module Admin
redirect_to action: :index
end
- def show_local_breadcrumb
- false
- end
-
private
def create_journal(container, user, notes)
diff --git a/app/views/admin/attachments/quarantined_attachments/index.html.erb b/app/views/admin/attachments/quarantined_attachments/index.html.erb
index 1a8524e0dcc..fa7223bec0e 100644
--- a/app/views/admin/attachments/quarantined_attachments/index.html.erb
+++ b/app/views/admin/attachments/quarantined_attachments/index.html.erb
@@ -2,7 +2,7 @@
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title(variant: :large) { t('antivirus_scan.quarantined_attachments.title') }
+ header.with_title(variant: :default) { t('antivirus_scan.quarantined_attachments.title') }
header.with_breadcrumbs(breadcrumb_items)
end
%>
diff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rb
index 5c600ebd01e..31043280f70 100644
--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb
+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb
@@ -205,12 +205,6 @@ class Storages::Admin::StoragesController < ApplicationController
end
end
- # See: default_breadcrum above
- # Defines whether to show breadcrumbs on the page or not.
- def show_local_breadcrumb
- false
- end
-
private
def ensure_valid_provider_type_selected