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

Version Path
forgeos_cms-1.9.5.rc1 app/views/admin/categories/_list_pages.html.haml
forgeos_cms-1.9.4 app/views/admin/categories/_list_pages.html.haml
forgeos_cms-1.9.2 app/views/admin/categories/_list_pages.html.haml
forgeos_cms-1.9.1 app/views/admin/categories/_list_pages.html.haml
forgeos_cms-1.9.0 app/views/admin/categories/_list_pages.html.haml