Skip to content

Commit

Permalink
Add flexibility to be able to pass in another collection (of pages at…
Browse files Browse the repository at this point in the history
… this stage) to the menu
  • Loading branch information
parndt committed May 4, 2010
1 parent 3389b7a commit cbc6d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/plugins/refinery/app/views/shared/_menu.html.erb
@@ -1,8 +1,8 @@
<% cache(:action_suffix => RefinerySetting.find_or_set(:refinery_menu_cache_action_suffix, "site_menu")) do %>
<ul id='<%= dom_id ||= "menu" %>' class='menu clearfix'>
<%= render :partial => "/shared/menu_branch", :collection => @menu_pages, :locals => {
<%= render :partial => "/shared/menu_branch", :collection => (collection ||= @menu_pages), :locals => {
:hide_children => RefinerySetting.find_or_set(:menu_hide_children, false),
:sibling_count => @menu_pages.size-1
:sibling_count => (collection ||= @menu_pages).size-1
} -%>
</ul>
<% end %>

0 comments on commit cbc6d9e

Please sign in to comment.