Project

General

Profile

« Previous | Next » 

Revision c7dd4b36

Added by Marc Dequènes almost 15 years ago

  • ID c7dd4b36a429fbcb4b8ac26f141b914bae774149

[evol] created display_artwork_frame() helper function and now use it in the welcome page + created a set/group tree view with it too

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 %><br /><span style="font-size: smaller;">(<%= artwork.artwork_size.human_size %>)</span></div>
<%= display_artwork_frame(artwork, :frame_type => :float) %>
<% end %>
<br style="clear: both;"/>
</p>

Also available in: Unified diff