Project

General

Profile

« Previous | Next » 

Revision 355d765d

Added by Marc Dequènes almost 16 years ago

  • ID 355d765d38ce93388eac47a1bb51e05a5d54f8fb

[evol] added image size info in the 'latest 10 artworks' page (closes #7)

View differences:

app/views/welcome/index.rhtml
# reload to ensure joint objects are well loaded
artwork = Artwork.find(artwork.id)
%>
<div style="float: left; text-align: center; margin: 7px;"><div><%= display_thumbnail(artwork.image, :thumb_big) %></div><%= artwork.title %></div>
<div style="float: left; text-align: center; margin: 7px;"><div><%= display_thumbnail(artwork.image, :thumb_big) %></div><%= artwork.title %><br /><span style="font-size: smaller;">(<%= artwork.artwork_size.human_size %>)</span></div>
<% end %>
<br style="clear: both;"/>
</p>

Also available in: Unified diff