Revision 7b2b192f
Added by Marc Dequènes over 14 years ago
- ID 7b2b192fba0dbf363c011f3538f76e1a59f57f78
app/views/view/set.rhtml | ||
---|---|---|
<h1><%= sprintf(_("View of set '%s'"), @artwork_set.name) %></h1>
|
||
|
||
<h2><%= _("Groups:") %></h2>
|
||
<h2><%= _("Artworks:") %></h2>
|
||
<p>
|
||
<% @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) %>
|
||
<% @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) %>
|
||
<% end %>
|
||
<br style="clear: both;"/>
|
||
</p>
|
||
|
||
<h2><%= _("Artworks:") %></h2>
|
||
<h2><%= _("Groups:") %></h2>
|
||
<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) %>
|
||
<% @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) %>
|
||
<% end %>
|
||
<br style="clear: both;"/>
|
||
</p>
|
Also available in: Unified diff
[cosmetic] invert arwork list and group list in set view (refs #18)