% if article.image %> <% className = "article-compact-abstract-with-image" %> <% if article.image.thumbnails_processed? %> <% image_file = article.image.public_filename(:big) %> <% else %> <% image_file = "/images/icons-app/image-loading-thumb.png" %> <% end %> <% else %> <% className = "article-compact-abstract" %> <% end %>