Revision df5b3282
Added by Marc Dequènes over 14 years ago
- ID df5b32828135889433c7e0eef2830711b1fcc2cd
app/views/view/tree.rhtml | ||
---|---|---|
|
||
<table class="image_list">
|
||
<% ArtworkSet.find(:all, :order => 'name ASC').each do |set| %>
|
||
<tr><th><%= link_to(display_image_frame(set.artworks.last.image, :frame_type => :cell, :size => :thumb_small, :force_title => set.name, :display_size => false, :with_link => false, :classes => "set"), :controller => '/view', :action => 'set', :id => set.id) %></th>
|
||
<tr><th><%= link_to(display_image_frame(set.artworks.first.image, :frame_type => :cell, :size => :thumb_small, :force_title => set.name, :display_size => false, :with_link => false, :classes => "set"), :controller => '/view', :action => 'set', :id => set.id) %></th>
|
||
<% unless set.artwork_groups.empty? %>
|
||
<% set.artwork_groups.each do |group| %>
|
||
<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>
|
Also available in: Unified diff
[cosmetic] use first artwork image instead of last for set thumbnail in the tree view (closes #17)