%- @page_title = "GBL♦Admin - Assets" %>
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?' } %> |