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

feat[#50499]: Add turbo_stream.update for full_breadcrumbs

Dominic Bräunlein8ab9020db6d4
diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb
index c1b952649d6..b5030dc7904 100644
--- a/app/views/layouts/base.html.erb
+++ b/app/views/layouts/base.html.erb
@@ -118,7 +118,9 @@ See COPYRIGHT and LICENSE files for more details.
<% if show_decoration %>
<div id="breadcrumb" class="<%= initial_classes %><%= show_breadcrumb ? ' -show' : '' %>">
<%= you_are_here_info %>
- <%= full_breadcrumbs %>
+ <div id="full_breadcrumbs">
+ <%= full_breadcrumbs %>
+ </div>
<%= call_hook :view_layouts_base_breadcrumb %>
</div>
<% end %>
diff --git a/modules/storages/app/views/storages/admin/storages/update.turbo_stream.erb b/modules/storages/app/views/storages/admin/storages/update.turbo_stream.erb
index 25bcfabe222..6d886c17da5 100644
--- a/modules/storages/app/views/storages/admin/storages/update.turbo_stream.erb
+++ b/modules/storages/app/views/storages/admin/storages/update.turbo_stream.erb
@@ -1,6 +1,16 @@
<%= turbo_stream.update dom_id(@storage, :edit_storage_header) do %>
<%= @storage.name %>
<% end %>
+<%= turbo_stream.update :full_breadcrumbs do %>
+ <%
+ breadcrumb_paths(
+ link_to(t(:label_administration), admin_index_path),
+ default_breadcrumb,
+ @storage.name
+ )
+ %>
+ <%= full_breadcrumbs %>
+<% end %>
<%= turbo_stream.update :storage_general_info_section do %>
<%= render(::Storages::Admin::GeneralInfoComponent.new(@storage)) %>