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