This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
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 %>
|