<% if asset.previewable? %>
<% if wopi_enabled? && wopi_file?(asset) %>
<% elsif asset.pdf_previewable? %>
<%= render partial: 'shared/pdf_viewer', locals: { asset: asset, report_document: false } %>
<% else %>
<%= image_tag asset.large_preview,
class: class_names('asset-image', 'gene-sequence-asset': asset.blob&.metadata["asset_type"] == 'gene_sequence'),
style: 'opacity: 1' %>
<% end %>
<% else %>
<%= render partial: 'shared/file_preview/file_icon', locals: { asset: asset } %>
<% end %>
<% if gallery.present? %>
<% end %>
<%= javascript_include_tag 'shared/file_preview', nonce: true %>
<%= javascript_include_tag "vue_open_locally_menu", nonce: true %>