Sha256: 46146a8064c4b38e7f8e192d501efb5fcb29038b71e69f560d0604c8e82c26b7
Contents?: true
Size: 558 Bytes
Versions: 28
Compression:
Stored size: 558 Bytes
Contents
<% # cache important lookups hide_children = RefinerySetting.find_or_set(:menu_hide_children, false) siblings = nil # all pages in the top level menu have the same siblings, basically. %> <ul id='<%= dom_id ||= "menu" %>' class='menu clearfix'> <% @menu_pages.each do |page| -%> <%= render :partial => '/shared/menu_branch', :locals => { :page => page, :position => @menu_pages.index(page), :root => true, :siblings => ((siblings ||= page.shown_siblings) - [self]), :hide_children => hide_children } -%> <% end -%> </ul>
Version data entries
28 entries across 28 versions & 1 rubygems