Sha256: 124a5bba715b7041689faf2ae2ed65dd9b577ebb6e3fe21bbf3d34f46b1fff4a
Contents?: true
Size: 672 Bytes
Versions: 5
Compression:
Stored size: 672 Bytes
Contents
- unless defined?(level) - level = 0 - unless categories.nil? or categories.blank? - categories.each do |category| %li{ :rel => 'folder', :id => "category_#{category.id}" } = link_to category.name, '#', :class=>'big-icons' - unless category.children.empty? %ul - category.children.each do |child| = render :partial => 'admin/categories/list_pages', :locals => { :categories => [child], :level => (level + 1) } = render :partial => 'admin/categories/page', :collection => category.pages - unless !defined?(pages) or pages.nil? or pages.blank? = render :partial => 'admin/categories/page', :collection => pages
Version data entries
5 entries across 5 versions & 1 rubygems