From 208ec37b2756ff1567e8851951721c088e2ba052 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Fri, 12 Jun 2015 14:40:53 -0300 Subject: [PATCH] display-article: use proper way to fetch thumbnail --- app/views/content_viewer/_display_compact_format.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/content_viewer/_display_compact_format.html.erb b/app/views/content_viewer/_display_compact_format.html.erb index ad8d0e0..32d3f11 100644 --- a/app/views/content_viewer/_display_compact_format.html.erb +++ b/app/views/content_viewer/_display_compact_format.html.erb @@ -1,7 +1,7 @@ <% if article.image %> <% className = "article-compact-abstract-with-image" %> <% if article.image.thumbnails_processed? %> - <% image_file = article.image.thumbnails[4].public_filename %> + <% image_file = article.image.public_filename(:big) %> <% else %> <% image_file = "/images/icons-app/image-loading-thumb.png" %> <% end %> -- libgit2 0.21.2