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

Version Path
decidim-core-0.24.3 app/views/decidim/application/_documents.html.erb
decidim-core-0.23.6 app/views/decidim/application/_documents.html.erb
decidim-core-0.24.2 app/views/decidim/application/_documents.html.erb
decidim-core-0.23.5 app/views/decidim/application/_documents.html.erb
decidim-core-0.24.1 app/views/decidim/application/_documents.html.erb
decidim-core-0.24.0 app/views/decidim/application/_documents.html.erb
decidim-core-0.24.0.rc2 app/views/decidim/application/_documents.html.erb
decidim-core-0.23.4 app/views/decidim/application/_documents.html.erb
decidim-core-0.24.0.rc1 app/views/decidim/application/_documents.html.erb
decidim-core-0.23.3 app/views/decidim/application/_documents.html.erb
decidim-core-0.23.2 app/views/decidim/application/_documents.html.erb
decidim-core-0.23.1 app/views/decidim/application/_documents.html.erb
decidim-core-0.23.1.rc1 app/views/decidim/application/_documents.html.erb
decidim-core-0.23.0 app/views/decidim/application/_documents.html.erb
decidim-core-0.22.0 app/views/decidim/application/_documents.html.erb