Sha256: 4529611d8fd959310711a9b5defa53662434d87c8e138a12b68134224ec276d7

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

- unless defined?(level)
  - level = 0

- unless categories.nil? or categories.blank?
  - categories.each do |category|
    %li{ :rel => 'attribute-category', :id => "category_#{category.id}" }
      = link_to((category.name + content_tag(:span, ' ', :class => 'big-icons gray-destroy')), '#')
      - unless category.elements.empty?
        %ul
          - category.elements.each do |attribute|
            - unless attribute.product_types.include? @product_type
              %li{ :rel => 'attribute', :id => "attribute_#{attribute.id}" }
                = link_to((attribute.name + content_tag(:span, ' ', :class => 'big-icons gray-destroy-attribute')), '#')
        - unless category.children.empty?
          %ul
            - category.children.each do |child|
              - unless child.attribute.empty?
                = render :partial => 'categories', :locals => { :categories => [child], :level => (level + 1) }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 app/views/admin/product_types/_options_categories.html.haml
forgeos_commerce-1.9.0 app/views/admin/product_types/_options_categories.html.haml