Sha256: 57155e5efc8f7cc340fc6dde21221e698ea3ba0d84960b340a348ca092420f04

Contents?: true

Size: 837 Bytes

Versions: 3

Compression:

Stored size: 837 Bytes

Contents

<%
  css = (css = css_for_menu_branch(menu_branch, menu_branch_counter, sibling_count||=nil)).any? ? " class='#{css.join(' ')}'" : nil
  dom_id = (menu_branch.parent_id.nil? and menu_branch.title.present?) ? " id='item_#{menu_branch_counter}'" : nil
-%>
<li<%= css -%><%= dom_id -%>>
  <%= link_to menu_branch.title, menu_branch.url %>

  <% unless hide_children or
            menu_branch.parent_id.present? or
            (children = menu_branch.children.reject{|c| !c.in_menu?}).empty? %>
    <nav class='clearfix'>
      <ul>
        <%=
          render :partial => "/shared/menu_branch",
                 :collection => children,
                 :locals => {
                   :hide_children => hide_children,
                   :sibling_count => children.size - 1
                 } -%>
      </ul>
    </nav>
  <% end %>
</li>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-0.9.7.15 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.7.14 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.7.13 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb