Sha256: c34448be52699c6d9346399d3aace7b9ae67cd30148e7ee1226ae0c292bd00c5

Contents?: true

Size: 949 Bytes

Versions: 1

Compression:

Stored size: 949 Bytes

Contents

<%
  css = if ((defined?(apply_css) && apply_css) || !defined?(apply_css)) and
           (classes = css_for_menu_branch(menu_branch, menu_branch_counter, sibling_count||=nil)).any?
    "class='#{classes.join(' ')}'"
  end
  dom_id = ("id='item_#{menu_branch_counter}'" if menu_branch.parent_id.nil? and menu_branch.title.present?)
  
  hide_children = (defined?(hide_children) && hide_children)
  children = hide_children ? [] : @menu_pages.select { |p| p.parent_id == menu_branch.id && p.in_menu? }
-%>
<li<%= ['', css, dom_id].join(' ').gsub(/\ *$/, '') %>>
  <%= link_to menu_branch.title, menu_branch.url %>

  <% if children.present? %>
    <ul class='clearfix'>
      <%=
        render :partial => "/shared/menu_branch",
               :collection => children,
               :locals => {
                 :hide_children => hide_children,
                 :sibling_count => children.size - 1
               } -%>
    </ul>
  <% end %>
</li>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-0.9.8.3 vendor/refinerycms/core/app/views/shared/_menu_branch.html.erb