Sha256: 42cac8dd3f6e00e5d41decd830b5c4593bcde0c38f163efdd518c95670e90dfc
Contents?: true
Size: 659 Bytes
Versions: 18
Compression:
Stored size: 659 Bytes
Contents
<% if documents.any? %> <% if (documents_without_collection = documents.reject(&:attachment_collection_id?)).any? %> <div class="documents__container"> <% documents_without_collection.each do |document| %> <%= render partial: "decidim/application/document", formats: [:html], locals: { 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", formats: [:html], locals: { attachment_collection: collection, documents: } %> <% end %> <% end %>
Version data entries
18 entries across 18 versions & 1 rubygems