Sha256: fb01850e2df06c74a6c206c041025c7fe55e885480e6e5be06e7d9f901948633
Contents?: true
Size: 990 Bytes
Versions: 2
Compression:
Stored size: 990 Bytes
Contents
<% css = if ((defined?(apply_css) && apply_css) || !defined?(apply_css)) and (classes = css_for_menu_branch(menu_branch, menu_branch_counter, sibling_count||=nil)).any? "class='#{classes.join(' ')}'" end dom_id = ("id='item_#{menu_branch_counter}'" if menu_branch.parent_id.nil? and menu_branch.title.present?) hide_children = (defined?(hide_children) && hide_children) children = hide_children ? [] : collection.select { |p| p.parent_id == menu_branch.id && p.in_menu? } -%> <li<%= ['', css, dom_id].join(' ').gsub(/\ *$/, '') %>> <%= link_to menu_branch.title, menu_branch.url %> <% if children.present? %> <ul class='clearfix'> <%= render :partial => "/shared/menu_branch", :collection => children, :locals => { :hide_children => hide_children, :collection => collection, :sibling_count => children.size - 1 } -%> </ul> <% end %> </li>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-0.9.8.5 | vendor/refinerycms/core/app/views/shared/_menu_branch.html.erb |
refinerycms-0.9.8.4 | vendor/refinerycms/core/app/views/shared/_menu_branch.html.erb |