Sha256: 045315a954eb8bb4757e6853e94a68d715d22811eebc18321f1bb15371b5300e
Contents?: true
Size: 835 Bytes
Versions: 11
Compression:
Stored size: 835 Bytes
Contents
<% if !!local_assigns[:apply_css] and (classes = menu_branch_css(local_assigns)).any? css = "class='#{classes.join(' ')}'".html_safe end -%> <li<%= ['', css].compact.join(' ').gsub(/\ *$/, '').html_safe %>> <%= link_to(menu_branch.title, refinery.url_for(menu_branch.url)) -%> <% if ( (children = menu_branch.children unless hide_children).present? && (!local_assigns[:menu_levels] || menu_branch.ancestors.length < local_assigns[:menu_levels]) ) -%> <ul class='clearfix'> <%= render :partial => '/refinery/menu_branch', :collection => children, :locals => { :apply_css => local_assigns[:apply_css], :hide_children => !!hide_children, :menu_levels => local_assigns[:menu_levels] } -%> </ul> <% end -%> </li>
Version data entries
11 entries across 11 versions & 1 rubygems