Sha256: d7da08fdb5925e65ab8a30f5d974639630b7b46a4bc54a30fdd144c9b6045244

Contents?: true

Size: 489 Bytes

Versions: 4

Compression:

Stored size: 489 Bytes

Contents

<% if work.representative.present? && (gf = GenericFile.load_instance_from_solr(work.representative)) %>
  <%= render partial: 'curation_concern/generic_files/media_display', locals: {generic_file: gf, dom_class_name: 'representative_image'} %>
<% elsif work.representative.present? %>
  <%= image_tag download_path(work.representative, {:datastream_id => 'thumbnail'}), class: 'representative_image' %>
<% else %>
  <%= image_tag 'curate/nope.png', class: "canonical-image" %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
curate-0.6.6 app/views/curation_concern/base/_representative_media.html.erb
curate-0.6.5 app/views/curation_concern/base/_representative_media.html.erb
curate-0.6.4 app/views/curation_concern/base/_representative_media.html.erb
curate-0.6.3 app/views/curation_concern/base/_representative_media.html.erb