Sha256: 524b1ea66217cef94fbdbad089ede98aa4008ba2c964a22237aafbbaf76cad64

Contents?: true

Size: 494 Bytes

Versions: 6

Compression:

Stored size: 494 Bytes

Contents

<% if work.representative.present? && (gf = Worthwhile::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 'nope.png', class: "canonical-image" %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
worthwhile-0.1.2 app/views/curation_concern/base/_representative_media.html.erb
worthwhile-0.1.1 app/views/curation_concern/base/_representative_media.html.erb
worthwhile-0.1.0 app/views/curation_concern/base/_representative_media.html.erb
worthwhile-0.0.3 app/views/curation_concern/base/_representative_media.html.erb
worthwhile-0.0.2 app/views/curation_concern/base/_representative_media.html.erb
worthwhile-0.0.1 app/views/curation_concern/base/_representative_media.html.erb