<%= tag.div class: 'asset', id: dom_id(asset) do %>
  
  <div class="asset__thumbnail">
    <div><%= image_tag rails_storage_proxy_path(asset.file.representation(resize_to_limit: [320,320], format: :webp)) if asset.file.representable? %></div>
  </div>  
    
  <%= tag.div asset.title, class: 'asset__title' %>
  
  <%= tag.div [      
      asset.file.filename.extension_without_delimiter.upcase, 
      number_to_human_size(asset.file.byte_size).sub(/\s/, ''), 
      [asset.file.metadata.dig('width'), asset.file.metadata.dig('height')].compact.join('x')
    ].reject{ |v| v.blank? }.join(' '), 
    class: 'asset__mimetypes' %>

  
  <%= label_tag nil, class: "icon-cb-round" do %>    
    <%= check_box_tag 'asset_ids[]', asset.id, false, id: nil%>          
    <span></span>
  <%- end -%>

  
  <div class="asset-ctrls">    
    <div>
      <%= link_to 'edit', edit_admin_asset_path(asset), data: {turbo_frame: 'main', turbo_action: 'advance'}, title: t('ui.edit') %>
      <%= link_to 'download', rails_blob_path(asset.file, disposition: "attachment"), title: t('ui.download') %>      
    </div>
    <%= link_to 'delete_forever', admin_asset_path(asset), data: { turbo_confirm: t(:'ui.are_you_sure'), turbo_method: :delete }, title: t('ui.delete') %>
  </div>
    
 
<% end %>