Sha256: e7cc6aa1bbd7b9b42b34212545e2c59bf06494f55d9575bccc2245c0602b8be4
Contents?: true
Size: 781 Bytes
Versions: 12
Compression:
Stored size: 781 Bytes
Contents
<% css = (css = css_for_menu_branch(menu_branch, menu_branch_counter)).any? ? " class='#{css.join(' ')}'" : nil dom_id = (menu_branch.parent_id.nil? and menu_branch.title.present?) ? " id='item_#{menu_branch_counter}'" : nil -%> <div<%= 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'> <%= render :partial => "/shared/menu_branch", :collection => children, :locals => { :hide_children => hide_children, :sibling_count => children.size - 1 } -%> </nav> <% end %> </div>
Version data entries
12 entries across 12 versions & 1 rubygems