<%- @page_title = "GBL♦Admin - Asset - #{@asset.title}" %> <%= link_to 'Back to Assets', admin_assets_path, {class: "mb-2"} %>

Asset

<% if @asset.parent.present? %> <%= link_to @asset.parent.title, admin_document_path(@asset.parent.friendlier_id) %> · <%= @asset.title %> <% else %> <%= @asset.title %> <% end %> <%= link_to '- Delete Asset', admin_asset_path, { class: 'btn btn-danger float-right ml-2', method: :delete, data: { confirm: 'Are you sure?' } } %> <%= link_to '~ Edit Asset', edit_admin_asset_path(@asset.id), { class: 'btn btn-primary float-right'} %>

<% if asset_thumb_to_render?(@asset) %> <% end %> <% if @asset.parent.present? %> <% else %> <% end %> <% if @asset.respond_to?(:thumbnail) && @asset.file_derivatives(:thumb_standard_2X)&.exists? %> <% end %>
Attribute Value
Title <%= @asset.title %>
Asset Link <%= link_to "Asset Link", @asset.file.url %>
Thumbnail <%= image_tag(@asset.file_url(:thumb_standard_2X)) %>
Type <%= @asset.type %>
Position <%= @asset.position %>
JSON Attributes <%= ap(JSON.parse(@asset.json_attributes.to_json)).html_safe %>
Parent Title <%= @asset.parent.title %>
Parent ID <%= @asset.parent_id %>
Parent Link <%= link_to(@asset.parent.friendlier_id, admin_document_path(@asset.parent)) %>
Parent ID FALSE
Friendlier ID <%= @asset.friendlier_id %>
File Data <%= ap(JSON.parse(@asset.file_data.to_json)).html_safe %>
Derivatives <% @asset.file_derivatives.each do |derivative| %> <%= image_tag(@asset.file_url(derivative.first)) %> <% end %>
Created At <%= @asset.created_at %>
Updated At <%= @asset.updated_at %>