Sha256: 9de06a064f84131ea43fb11f9355b79776e5b6f6069cc5c53680c8833d7d0d3c
Contents?: true
Size: 815 Bytes
Versions: 19
Compression:
Stored size: 815 Bytes
Contents
<% if documents.any? %> <div class="section documents"> <h3 class="section-heading"><%= t("decidim.application.documents.related_documents") %></h3> <% if (documents_without_collection = documents.reject(&:attachment_collection_id?)).any? %> <div class="card card--list"> <% documents_without_collection.each do |document| %> <%= render partial: "decidim/application/document.html", locals: { document: document } %> <% end %> </div> <% end %> <% documents.select(&:attachment_collection_id?).group_by(&:attachment_collection).sort_by { |c, d| c.weight }.each do |collection, documents| %> <%= render partial: "decidim/application/collection.html", locals: { attachment_collection: collection, documents: documents } %> <% end %> </div> <% end %>
Version data entries
19 entries across 19 versions & 1 rubygems