Sha256: 7c16f0e8171c3e3e8610aec46787febf15a038e3f1e4e41f26579e263629783d
Contents?: true
Size: 1.01 KB
Versions: 6
Compression:
Stored size: 1.01 KB
Contents
<%- unless pages.blank? -%> <ul class="navigation_level_<%= pages.first.level - 1 %>"> <%- pages.each do |page| -%> <%- position = 'first' if page == pages.to_a.first -%> <%- position = 'last' if page == pages.to_a.last -%> <li class="<%= page.urlname -%> <%= position -%><%= " active" if page_active?(page) %>"> <%= render :partial => options[:navigation_link_partial], :object => page, :locals => {:page => page, :options => options} -%> <%- options[:from_page] = page -%> <%- if options[:reverse_children] -%> <%- options[:reverse] = true -%> <%- end -%> <%- if options[:show_nonactive] -%> <%= render_navigation(options) if (options[:submenu]) -%> <%- else -%> <%= render_navigation(options) if ((options[:submenu] && page_active?(page)) || options[:all_sub_menues]) -%> <%- end -%> </li> <%- unless options[:spacer].empty? -%> <%= raw "<li class=\"navigation_spacer\">#{options[:spacer]}</li>" unless page == pages.to_a.last -%> <%- end -%> <%- end -%> </ul> <%- end -%>
Version data entries
6 entries across 6 versions & 1 rubygems