Sha256: e03cb635e9f3b3bad2c02ef7a2c0436ef8ddc8c25d8aa0b3efc25625e15ee6b5

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 Bytes

Contents

<%= render partial: 'popolo/areas_or_organizations/breadcrumb', locals: {object: object} %>

<% collection = object.children %>
<% 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_resource_path([object, document]) %></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/_show.html.erb