<%= fa_icon("paperclip") %> <%= Archangel.t(:index_resource, resource: @assets.model_name.human.titleize) %>

<%= render "buttons" %>
<% if @assets.present? %> <%= paginate @assets %>
<% @assets.each do |asset| %> <% end %>
<%= Archangel.t(:file) %> <%= Archangel.t(:file_name) %> <%= Archangel.t(:content_type) %> <%= Archangel.t(:file_size) %> <%= Archangel.t(:actions) %>
<%= image_tag(asset.file.tiny.url, alt: asset.file_name) %> <%= asset.file_name %> <%= asset.content_type %> <%= number_to_human_size(asset.file_size) %> <%= link_to(fa_icon("info-circle", text: Archangel.t(:show)), backend_asset_path(asset), class: "btn btn-info btn-sm") %> <%= link_to(fa_icon("check-circle", text: Archangel.t(:edit)), edit_backend_asset_path(asset), class: "btn btn-warning btn-sm") %> <%= link_to(fa_icon("times-circle", text: Archangel.t(:destroy)), backend_asset_path(asset), class: "btn btn-danger btn-sm", method: :delete, data: { confirm: Archangel.t(:are_you_sure) }) %>
<%= paginate @assets %> <% else %>

<%= Archangel.t(:no_resources, resources: @assets.model_name.human.pluralize.downcase) %>

<% end %>