Sha256: e2e44551a4afd0665ac85109dc8cb6893bbe29aeeddd112bd0430c5e37c5cc39

Contents?: true

Size: 990 Bytes

Versions: 15

Compression:

Stored size: 990 Bytes

Contents

<%
  css = []
  css << "selected" if selected_page?(menu_branch) or descendant_page_selected?(menu_branch)
  css << "first" if menu_branch_counter == 0
  css << "last" if menu_branch_counter == (sibling_count ||= menu_branch.shown_siblings.size)
  domid = "item_#{menu_branch_counter}" unless menu_branch.parent_id.present? or menu_branch.title.blank?
-%>
<% if menu_branch.in_menu? %>
  <li<%= " class='#{css.join(' ')}'" if css.present? -%><%= " id='#{domid}'" if domid.present? -%>>
    <%= link_to menu_branch.title, menu_branch.url %>
    <%
      unless hide_children or
        menu_branch.parent_id.present? or
        (children = menu_branch.children.collect{|c| c if c.in_menu?}.compact).empty?
    -%>
      <ul class='clearfix'>
        <%= render :partial => "/shared/menu_branch",
                    :collection => children,
                    :locals => {:hide_children => hide_children, :sibling_count => children.size-1} -%>
      </ul>
    <% end -%>
  </li>
<% end -%>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
refinerycms-0.9.6.34 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.33 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.32 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.31 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.30 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.29 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.28 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.27 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.26 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.25 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.24 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.23 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.22 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.21 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
refinerycms-0.9.6.19 vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb