root/app/views/view/tree.rhtml @ 5c2a70ab
c7dd4b36 | Marc Dequènes (Duck) | <h1><%= _("Tree view of the Cyma") %></h1>
|
|
<table>
|
|||
4a95d72c | Marc Dequènes (Duck) | <% ArtworkSet.find(:all, :order => 'name ASC').each do |set| %>
|
|
8ff59b90 | Marc Dequènes (Duck) | <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), :controller => '/view', :action => 'set', :id => set.id) %></th>
|
|
c7dd4b36 | Marc Dequènes (Duck) | <% unless set.artwork_groups.empty? %>
|
|
<% set.artwork_groups.each do |group| %>
|
|||
8ff59b90 | Marc Dequènes (Duck) | <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), :controller => '/view', :action => 'group', :id => group.id) %></td>
|
|
c7dd4b36 | Marc Dequènes (Duck) | <% end %>
|
|
<% end %>
|
|||
</tr>
|
|||
<% end %>
|
|||
</table>
|