<% unless attachment_collection.unused? %>
<%= icon "caret-right", class: "icon--small", role: "img", "aria-hidden": true %>  <%= translated_attribute(attachment_collection.name) %> <% attachment_collection_documents_count = attachment_collection.attachments.select(&:document?).count %> (<%= attachment_collection_documents_count %> <%= t("decidim.application.collection.documents", count: attachment_collection_documents_count) %>)

<%= translated_attribute(attachment_collection.description) %>

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