Commit 208ec37b2756ff1567e8851951721c088e2ba052

Authored by Rodrigo Souto
1 parent dbea8847

display-article: use proper way to fetch thumbnail

app/views/content_viewer/_display_compact_format.html.erb
1 1 <% if article.image %>
2 2 <% className = "article-compact-abstract-with-image" %>
3 3 <% if article.image.thumbnails_processed? %>
4   - <% image_file = article.image.thumbnails[4].public_filename %>
  4 + <% image_file = article.image.public_filename(:big) %>
5 5 <% else %>
6 6 <% image_file = "/images/icons-app/image-loading-thumb.png" %>
7 7 <% end %>
... ...