orbit-basic/app/views/front/show_breadcrumb.html.erb

15 lines
391 B
Plaintext
Raw Permalink Normal View History

2013-02-07 11:35:42 +00:00
<% unless @ancestors.blank? %>
2013-02-05 10:17:35 +00:00
<ul class="breadcrumb">
<% @ancestors.each_with_index do |node, i| %>
<% last = i == @ancestors.size-1 %>
<li class='<%= 'active' if last %>'>
<% if last %>
<%= node.title %>
<% else %>
<%= link_to node.title, "/#{node.path}" %>
<span class="divider">/</span>
2013-01-31 11:20:55 +00:00
<% end %>
2013-02-05 10:17:35 +00:00
</li>
<% end %>
</ul>
<% end %>