app/views/curation_concern/base/_thumbnail.html.erb in curate-0.5.6 vs app/views/curation_concern/base/_thumbnail.html.erb in curate-0.6.0
- old
+ new
@@ -1,5 +1,5 @@
-<%- if generic_file && generic_file.thumbnail.has_content? -%>
- <%= image_tag download_path(generic_file.pid, {:datastream_id => 'thumbnail'}), class: dom_class_name %>
+<%- 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 -%>