Sha256: 08a316b4ca8004477483feb9521057bdbad68f606f697a7941ea57ba4515856f
Contents?: true
Size: 834 Bytes
Versions: 10
Compression:
Stored size: 834 Bytes
Contents
<% # Collect the root items. # Refinery::Menu is smart enough to remember all of the items in the original collection. if (roots = local_assigns[:roots] || (collection ||= @menu_pages).roots).present? dom_id ||= 'menu' css = [(css || 'menu'), 'clearfix'].flatten.join(' ') hide_children = RefinerySetting.find_or_set(:menu_hide_children, false) if hide_children.nil? -%> <nav id='<%= dom_id %>' class='<%= css %>'> <ul> <%= render :partial => '/shared/menu_branch', :collection => roots, :locals => { :hide_children => hide_children, :sibling_count => (roots.length - 1), :apply_css => true #if you don't care about class='first' class='last' or class='selected' set apply_css to false for speed. } -%> </ul> </nav> <% end -%>
Version data entries
10 entries across 10 versions & 1 rubygems