<%= link_to rails_blob_path(asset.file, disposition: 'attachment'), class: "file-preview-link", id: "modal_link#{asset.id}", data: { no_turbolink: true, id: true, 'preview-url': asset_file_preview_path(asset)} do %> <% if wopi_enabled? && wopi_file?(asset) %>
<% end %>
<% if asset.previewable? %> <%= image_tag asset.medium_preview, onerror: 'ActiveStoragePreviews.reCheckPreview(event)', onload: 'ActiveStoragePreviews.showPreview(event)', style: 'opacity: 0' %> <% else %> <% end %>
<% if asset.file.attached? && asset&.file&.metadata['asset_type'] %> <%= asset.file.metadata['name'] %> <% else %> <%= asset.file_name %> <% end %>
<%= t('assets.placeholder.modified_label') %> <%= l(asset.updated_at, format: :full_date) if asset.updated_at %>
<%= number_to_human_size(asset.file_size) %>
<% end %>