<%- if thumbnail.representative.present? -%> <%= image_tag download_path(thumbnail.representative, {:datastream_id => 'thumbnail'}), class: dom_class_name %> <%- else -%> <%= image_tag 'curate/nope.png', class: "canonical-image" %> <%- end -%>