Project

General

Profile

« Previous | Next » 

Revision 33c93671

Added by Marc Dequènes about 14 years ago

  • ID 33c93671e7aca8988443063c986223fa036d6fba

[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)

View differences:

app/views/view/tree.rhtml
<table>
<% 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), :controller => '/view', :action => 'set', :id => set.id) %></th>
<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>
<% 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), :controller => '/view', :action => 'group', :id => group.id) %></td>
<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 %>
<% end %>
</tr>

Also available in: Unified diff