<%= t("admin.documents.index.title") %>

<%= link_to t("admin.documents.index.new_link"), new_admin_site_customization_document_path, class: "button float-right" %> <% if @documents.any? %>

<%= page_entries_info @documents %>

<% @documents.each do |document| %> <% end %>
<%= t("admin.shared.title") %> <%= t("admin.documents.index.format") %> <%= t("admin.documents.index.size") %> <%= t("admin.shared.actions") %>
<%= document.title %> <%= document.attachment.content_type %> <%= number_to_human_size(document.attachment.byte_size) %> <%= render Admin::TableActionsComponent.new( document, actions: [:destroy], destroy_path: admin_site_customization_document_path(document) ) do |actions| %> <%= actions.action(:download, text: t("documents.buttons.download_document"), path: document.attachment, rel: "nofollow") %> <% end %>
<% else %>
<%= t("admin.documents.index.no_documents") %>
<% end %> <%= paginate @documents %>