2013-01-31 11:20:55 +00:00
|
|
|
<% if not @ancestors.empty? %>
|
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 %>
|