Revision c125ab32
Added by Marc Dequènes about 16 years ago
- ID c125ab32851f24c6b757308d1acce8e1f1f60beb
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
[fix] ensure displaying final image in the 'lastest 10 artworks'