<% link = assigns[:link] || ~p"/images/#{@image}" size_class = case @size do :thumb -> "media-box__content--large" :medium -> "media-box__content--featured" _ -> "media-box__content--small" end header_class = case @size do :thumb_small -> "media-box__header--small" _ -> nil end %>
<%= @image.faves_count %> <%= @image.score %> <%= @image.comments_count %>
<%= render(PhilomenaWeb.ImageView, "_image_container.html", link: link, image: @image, size: @size, conn: @conn) %>