<% link = assigns[:link] || ~p"/images/#{@image}" %> <%= image_container @conn, @image, @size, fn -> %> <%= cond do %> <% @image.duplicate_id -> %>
Marked Duplicate
<% @image.destroyed_content -> %>
Destroyed Content
<% @image.hidden_from_users -> %>
Deleted: <%= @image.deletion_reason %>
<% true -> %> <% end %> <%= case render_intent(@conn, @image, @size) do %> <% {:hidpi, small_url, medium_url, hover_text} -> %>
{hover_text} <% {:image, small_url, hover_text} -> %>
<%= if @image.image_mime_type == "video/webm" do %> WebM <% end %>
{hover_text} <% {:video, webm, mp4, hover_text} -> %>
{hover_text} <% {:filtered_image, hover_text} -> %>
{hover_text} <% {:filtered_video, hover_text} -> %>
{hover_text} <% :not_rendered -> %>
Thumbnails not yet generated <% end %> <% end %>