Revision 33c93671
Added by Marc Dequènes about 14 years ago
- ID 33c93671e7aca8988443063c986223fa036d6fba
app/views/view/set.rhtml | ||
---|---|---|
<p>
|
||
<% @artwork_set.artworks.each do |artwork| %>
|
||
<% next if artwork.artwork_group %>
|
||
<%= display_image_frame(artwork.image, :frame_type => :float, :size => :thumb_small, :display_size => false) %>
|
||
<%= display_image_frame(artwork.image, :frame_type => :float, :size => :thumb_small, :display_size => false, :classes => "artwork") %>
|
||
<% end %>
|
||
<br style="clear: both;"/>
|
||
</p>
|
||
|
||
<h2><%= _("Groups:") %></h2>
|
||
<p>
|
||
<table>
|
||
<% @artwork_set.artwork_groups.each do |group| %>
|
||
<%= link_to(display_image_frame(group.artworks.last.image, :frame_type => :float, :size => :thumb_small, :force_title => group.name, :display_size => false, :with_link => false), :controller => '/view', :action => 'group', :id => group.id) %>
|
||
<td><%= link_to(display_image_frame(group.artworks.last.image, :frame_type => :cell, :size => :thumb_small, :force_title => group.name, :display_size => false, :with_link => false, :classes => "group"), :controller => '/view', :action => 'group', :id => group.id) %></td>
|
||
<% end %>
|
||
<br style="clear: both;"/>
|
||
</p>
|
||
</table>
|
||
|
Also available in: Unified diff
[cosmetic] display groups in a set into a light blue cell, like in the tree (closes #18), and btw improved CSS handling a bit (unfinished)