Project

General

Profile

« Previous | Next » 

Revision c125ab32

Added by Marc Dequènes over 15 years ago

  • ID c125ab32851f24c6b757308d1acce8e1f1f60beb

[fix] ensure displaying final image in the 'lastest 10 artworks'

View differences:

app/views/welcome/index.rhtml
<p>
<% Artwork.find(:all, :include => :artwork_step_images, :conditions => ["artwork_steps.id IS NOT NULL"], :order => "artwork_steps.date DESC", :limit => 10).each do |artwork| %>
<%
# reload to ensure joint objects are well loaded
artwork = Artwork.find(artwork.id)
%>
<div style="float: left; text-align: center;"><div><%= display_thumbnail(artwork.image, :thumb_big) %></div><%= artwork.title %></div>
<% end %>
<br style="clear: both;"/>

Also available in: Unified diff