Sha256: 327b4a9356d1806110d434899d49b9e414e37e895fa3c19ee17611f4aae4798d

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>
  <ol>
    <% documents.each do |document| %>
    <li><%= link_to document.name, nested_resources_path([object, document].compact) %></li>
    <% end %>
  </ol>
</section>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

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