<%# 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? %>
<% end %>
<% end %>