Project

General

Profile

« Previous | Next » 

Revision 355d765d

Added by Marc Dequènes almost 11 years ago

  • ID 355d765d38ce93388eac47a1bb51e05a5d54f8fb

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

View differences:

app/views/welcome/index.rhtml
10 10
    # reload to ensure joint objects are well loaded
11 11
    artwork = Artwork.find(artwork.id)
12 12
   %>
13
  <div style="float: left; text-align: center; margin: 7px;"><div><%= display_thumbnail(artwork.image, :thumb_big) %></div><%= artwork.title %></div>
13
  <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>
14 14
  <% end %>
15 15
  <br style="clear: both;"/>
16 16
</p>

Also available in: Unified diff