Change breadcrumb html
This commit is contained in:
parent
bfad8467c8
commit
2a293734c7
|
@ -1,11 +1,15 @@
|
||||||
<% if not @ancestors.empty? %>
|
<% if not @ancestors.empty? %>
|
||||||
<div class='category_list'>
|
<ul class="breadcrumb">
|
||||||
<ul class='list'>
|
<% @ancestors.each_with_index do |node, i| %>
|
||||||
<% @ancestors.each do |node| %>
|
<% last = i == @ancestors.size-1 %>
|
||||||
<li class='active'>
|
<li class='<%= 'active' if last %>'>
|
||||||
|
<% if last %>
|
||||||
|
<%= node.title %>
|
||||||
|
<% else %>
|
||||||
<%= link_to node.title, "/#{node.path}" %>
|
<%= link_to node.title, "/#{node.path}" %>
|
||||||
|
<span class="divider">/</span>
|
||||||
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
Loading…
Reference in New Issue