Commit d6fc1887d518ff2ad92104ebe91a5f146bbb43fb

Authored by AntonioTerceiro
1 parent ae708610

ActionItem70: highlighting top ancestor of current category



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@547 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/views/shared/categories_menu.rhtml
1 <ul> 1 <ul>
2 <% @environment.display_categories.each do |item| %> 2 <% @environment.display_categories.each do |item| %>
3 - <li id='category<%= item.display_color %>'> 3 + <li id='category<%= item.display_color %>' <%= 'class="active"' if (@category.top_ancestor == item) %> >
4 <%= item.name %> 4 <%= item.name %>
5 <ul> 5 <ul>
6 <% item.children.each do |child| %> 6 <% item.children.each do |child| %>
7 - <li><%= link_to(content_tag('span', child.name), :controller => 'category', :path => child.path) %></li> 7 + <li><%= link_to(content_tag('span', child.name), :controller => 'category', :action => 'view', :path => child.explode_path) %></li>
8 <% end %> 8 <% end %>
9 </ul> 9 </ul>
10 </li> 10 </li>