mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
init project
This commit is contained in:
13
app/views/shared/_breadcrumb.html.erb
Normal file
13
app/views/shared/_breadcrumb.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<% if @_breadcrumbs.present? %>
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<% @_breadcrumbs&.each_with_index do |item, index| %>
|
||||
<% if item.url.present? && index != @_breadcrumbs.size - 1 %>
|
||||
<li class="breadcrumb-item"><%= link_to item.text, item.url %></li>
|
||||
<% else %>
|
||||
<li class="breadcrumb-item active" aria-current="page"><%= item.text %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ol>
|
||||
</nav>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user