Skip to content

Commit

Permalink
feat[#50499]: Add turbo_stream.update for full_breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
dominic-braeunlein committed Nov 3, 2023
1 parent 6278a20 commit e802303
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/layouts/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@
<%= 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 %>

0 comments on commit e802303

Please sign in to comment.