<%= content_tag(:article, article_attrs) do -%> <%= link_to polymorphic_path(link_target, link_params) do -%> <%= content_tag(:picture) do -%> <%= tag.source media: "(max-width: 660px)", srcset: cropped_url -%> <%= tag.source media: "(min-width: 660px)", srcset: preview_url -%> <%= tag.img class: "has-cropped-#{has_cropped}", src: preview_url, title: tooltip, alt: alt_text -%> <% end -%> <% end -%> <% if pool -%>

<%= link_to pool.pretty_name.truncate(80), pool %>

<% end -%> <% if similarity -%>

Similarity: <%= similarity %>

<% end -%> <% if size -%>

<%= number_to_human_size(size) %> (<%= width %>x<%= height %>)

<% end -%> <% end -%>