[noosfero/noosfero][master] display-article: use proper way to fetch thumbnail

Rodrigo Souto gitlab at gitlab.com
Fri Jun 12 14:41:11 BRT 2015


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
208ec37b by Rodrigo Souto at 2015-06-12T14:40:53Z
display-article: use proper way to fetch thumbnail

- - - - -


1 changed file:

- app/views/content_viewer/_display_compact_format.html.erb


Changes:

=====================================
app/views/content_viewer/_display_compact_format.html.erb
=====================================
--- 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 %>



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/208ec37b2756ff1567e8851951721c088e2ba052
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150612/d142c726/attachment.html>


More information about the Noosfero-dev mailing list