<% unless @ancestors.blank? %>
<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>
      <% end %>
    </li>
  <% end %>
</ul>
<% end %>