Skip to content

Commit

Permalink
skip pages that aren`t visible in main menu
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus committed Mar 12, 2012
1 parent 2f4d25f commit 8ecece4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/shared/_main_menu_items.html.erb
@@ -1,6 +1,6 @@
<% unless @pages.blank? %>
<% @pages.each do |page| %>
<% next if page.root? %>
<% next if page.root? || !page.visible? %>
<%= content_tag(:li, link_to(page.nav_title, page.path), :class => page.matches?(request.path) ? "active" : nil) %>
<% end %>
<% end %>

0 comments on commit 8ecece4

Please sign in to comment.