Sha256: 5d8018931b8579eaaca2c5d40f0cf1653fe00cdc81b41fcbc58316f30b49142f

Contents?: true

Size: 950 Bytes

Versions: 1

Compression:

Stored size: 950 Bytes

Contents

<% if object %>
<nav>
  <ul class="breadcrumb">
    <li><%= link_to resource_collection_name.capitalize, collection_path %> <span class="divider">/</span></li>
  <% ancestors = object.ancestors %>
  <% ancestors.each_with_index do |ancestor,index| %>
    <li>
      <%= link_to ancestor.name, nested_resources_path(ancestors[0..index]) %>
      <span class="divider">/</span>
    </li>
  <% end %>
    <li class="active"><%= object.name %></li>
  </ul>
</nav>
<% end %>

<% unless collection.empty? %>
  <% groups = collection.asc(:sort_name).group_by(&:classification) %>
  <% groups.each do |classification,documents| %>
<section>
  <header>
    <h1><%= t(classification, scope: [:popolo, resource_collection_name, :classifications]) %></h1>
  </header>
  <ul>
    <% documents.each do |document| %>
    <li><%= link_to document.name, nested_resources_path([object, document].compact) %></li>
    <% end %>
  </ul>
</section>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
popolo-0.0.1 app/views/popolo/areas_or_organizations/_index.html.erb