Sha256: 9136806545fc6f6164092a210df11b4a696f5cc8e5a1bf233b8d5df091fa9f4d

Contents?: true

Size: 1.03 KB

Versions: 9

Compression:

Stored size: 1.03 KB

Contents

<% unless attachment_collection.unused? %>
  <div class="docs__container">
    <button type="button" data-toggle="docs-collection-<%= attachment_collection.id %>"><%= icon "caret-right", class: "icon--small", role: "img", "aria-hidden": true %>&nbsp;
      <strong><%= translated_attribute(attachment_collection.name) %></strong>

      <% attachment_collection_documents_count =  attachment_collection.attachments.select(&:document?).count %>
      <small>(<%= attachment_collection_documents_count %> <%= t("decidim.application.collection.documents", count: attachment_collection_documents_count) %>)</small>
    </button>

    <div id="docs-collection-<%= attachment_collection.id %>" class="docs__content hide" data-toggler=".hide">
      <p><%= translated_attribute(attachment_collection.description) %></p>

      <div class="card card--list">
        <% documents.each do |document| %>
          <%= render partial: "decidim/application/document.html", locals: { document: document } %>
        <% end %>
      </div>
    </div>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-core-0.26.10 app/views/decidim/application/_collection.html.erb
decidim-core-0.26.9 app/views/decidim/application/_collection.html.erb
decidim-core-0.26.8 app/views/decidim/application/_collection.html.erb
decidim-core-0.26.7 app/views/decidim/application/_collection.html.erb
decidim-core-0.26.5 app/views/decidim/application/_collection.html.erb
decidim-core-0.26.4 app/views/decidim/application/_collection.html.erb
decidim-core-0.26.3 app/views/decidim/application/_collection.html.erb
decidim-core-0.26.2 app/views/decidim/application/_collection.html.erb
decidim-core-0.26.1 app/views/decidim/application/_collection.html.erb