<%# A squawk's files: photos open in the in-app viewer, everything else opens in a new tab. Every file has a download link. %> <% files = squawk.attachments.to_a %> <% if files.any? %> <% photos, others = files.partition(&: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 %>