<%- @page_title = "GBL♦Admin - Assets" %>

Assets <%= link_to '+ Upload Assets', display_attach_form_admin_assets_url, { class: 'btn btn-primary float-right mr-2' } %>

<%== pagy_info(@pagy) %> <%== pagy_bootstrap_nav(@pagy) %>
<% @assets.each do |asset| %> <% end %>
Search Assets <%= form_tag admin_assets_path, method: :get, class: "form-inline float-right" do %> <%= text_field_tag :q, params[:q], class: "form-control mr-2", placeholder: "Search*" %> <%= submit_tag "Search", class: "btn btn-primary" %> <% end %>
ID* File Name* MimeType Thumbnail Parent ID* Parent Title Created At* Actions
<%= asset.id %> <%= link_to asset.title, asset.file.url %> <%= asset.file_data["metadata"]["mime_type"] %> <% if asset.respond_to?(:thumbnail) %> <% unless asset.file_url(:thumb_standard_2X).nil? %> <%= image_tag(asset.file_url(:thumb_standard_2X), { height: 100 }) %> <% end %> <% end %> <%= asset.parent.id if asset.parent.present? %> <%= link_to asset.parent.title, admin_document_path(asset.parent.friendlier_id) if asset.parent.present? %> <%= asset.created_at %> <%= link_to 'Show', admin_asset_path(asset.id) %> <%= link_to 'Edit', edit_admin_asset_path(asset.id) %> <%= link_to 'Destroy', admin_asset_path(asset.id), method: :delete, data: { confirm: 'Are you sure?' } %>
<%== pagy_info(@pagy) %> <%== pagy_bootstrap_nav(@pagy) %>