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

Version Path
refinerycms-core-2.0.10 app/views/refinery/_menu_branch.html.erb
refinerycms-core-2.0.9 app/views/refinery/_menu_branch.html.erb
refinerycms-core-2.0.8 app/views/refinery/_menu_branch.html.erb
refinerycms-core-2.0.7 app/views/refinery/_menu_branch.html.erb
refinerycms-core-2.0.6 app/views/refinery/_menu_branch.html.erb
refinerycms-core-2.0.5 app/views/refinery/_menu_branch.html.erb
refinerycms-core-2.0.4 app/views/refinery/_menu_branch.html.erb
refinerycms-core-2.0.3 app/views/refinery/_menu_branch.html.erb
refinerycms-core-2.0.2 app/views/refinery/_menu_branch.html.erb
refinerycms-core-2.0.1 app/views/refinery/_menu_branch.html.erb
refinerycms-core-2.0.0 app/views/refinery/_menu_branch.html.erb