<%# A squawk's files: photos show as thumbnails that open the in-app viewer (which has Download); other files open in a new tab and have a download link. %> <% files = squawk.attachments.to_a %> <% if files.any? %> <%# Thumbnails for images that can be resized; others are listed as files. %> <% photos, others = files.partition { _1.image? && _1.blob.resizable_image? } %>
<% if photos.any? %> " class="m-0 h-dvh max-h-none w-screen max-w-none bg-transparent p-0 text-white backdrop:bg-black/90" data-action="click->gallery#backdrop keydown->gallery#keydown touchstart->gallery#touchstart touchend->gallery#touchend">
<%= t(".open_2_html") %> <%= t(".download_2_html") %>
<% end %>
<% end %>