<% if wopi_enabled? && wopi_file?(asset) %>
<% elsif asset.previewable? %>
<%= image_tag asset.large_preview,
onerror: 'ActiveStoragePreviews.reCheckPreview(event)',
onload: 'ActiveStoragePreviews.showPreview(event)',
style: 'opacity: 0' %>
<% else %>
<% end %>