Skip to content

Commit

Permalink
fix braedcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Oct 22, 2024
1 parent 0f53e05 commit cf9878f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/com/panel/meta_models/_base/_index_tr.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<i class="fa-solid fa-sitemap text-success"></i>
<span class="ml-1"><%= t('.reflections.title') %></span>
<% end %>
<%= link_to({ action: 'indexes', id: model.id, **request.query_parameters.except(:id, :page, :per) }, class: 'button is-small is-rounded is-light') do %>
<%= link_to({ action: 'indexes', id: model.id, **request.query_parameters.except(:id, :page, :per, :table_name) }, class: 'button is-small is-rounded is-light') do %>
<i class="fa-solid fa-sitemap text-success"></i>
<span class="ml-1"><%= t('.indexes.title') %></span>
<% end %>
Expand Down
3 changes: 3 additions & 0 deletions app/views/com/panel/meta_models/_indexes/_breadcrumb.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<li><%= link_to t('.meta_models.index.title'), { controller: 'meta_models', **request.query_parameters.except(:id, :page, :per) } %></li>
<li><span class="px-3"><%= @meta_model.record_name %></span></li>
<li class="is-active"><%= t('.title') %></li>

0 comments on commit cf9878f

Please sign in to comment.