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

Version Path
refinerycms-core-1.0.11 app/views/shared/_menu.html.erb
refinerycms-core-1.0.10 app/views/shared/_menu.html.erb
refinerycms-core-1.0.9 app/views/shared/_menu.html.erb
refinerycms-core-1.0.8 app/views/shared/_menu.html.erb
refinerycms-core-1.0.7 app/views/shared/_menu.html.erb
refinerycms-core-1.0.5 app/views/shared/_menu.html.erb
refinerycms-core-1.0.4 app/views/shared/_menu.html.erb
refinerycms-core-1.0.3 app/views/shared/_menu.html.erb
refinerycms-core-1.0.1 app/views/shared/_menu.html.erb
refinerycms-core-1.0.0 app/views/shared/_menu.html.erb