Sha256: a91fefceed93e513f97cec0e89191fbd9cc6ef5267121401bbc7059ba94d7752

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 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
            (children = menu_branch.children.reject{|c| !c.in_menu?}).empty? %>
    <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 vendor/refinerycms/core/app/views/shared/_menu_branch.html.erb