Sha256: 92b51e79f30d68894409e3217b832f6e37eef1a6aed27b07b6784ff3bf787437

Contents?: true

Size: 843 Bytes

Versions: 4

Compression:

Stored size: 843 Bytes

Contents

- unless defined?(level)
  - level = 0
- categories.each do |category|
  - li_id = "category_#{category.id}"
  %li{ :rel => category.children.empty? ? 'file' : 'folder', :id => li_id }
    - link_to '#', :id => "link_#{li_id}", :class => 'big-icons' do
      = category.name
      %span{ :id => "span_#{li_id}"}= category.total_elements_count

    - unless category.children.empty?
      %ul
        - category.children.each do |child|
          = render :partial => 'admin/categories/list', :locals => { :categories => [child], :level => (level + 1) }

  = drop_receiving_element("link_#{li_id}", :url => forgeos_core.add_element_admin_category_path(category), :update => "span_#{li_id}", :with => "'element_id='+get_rails_element_id($(ui.draggable))+'&type=#{category.class}'", :complete => "update_parent_categories_count($('##{li_id}'))")

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
forgeos_core-1.9.4 app/views/admin/categories/_list.html.haml
forgeos_core-1.9.3 app/views/admin/categories/_list.html.haml
forgeos_core-1.9.2 app/views/admin/categories/_list.html.haml
forgeos_core-1.9.1 app/views/admin/categories/_list.html.haml