Commit d6fc1887d518ff2ad92104ebe91a5f146bbb43fb
1 parent
ae708610
Exists in
master
and in
28 other branches
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 | 1 | <ul> |
| 2 | 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 | 4 | <%= item.name %> |
| 5 | 5 | <ul> |
| 6 | 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 | 8 | <% end %> |
| 9 | 9 | </ul> |
| 10 | 10 | </li> | ... | ... |