Sha256: ea045e9fe3b9e128d41a752dc237ab0bee115cd53e232d669f46df601e727a9e

Contents?: true

Size: 280 Bytes

Versions: 6

Compression:

Stored size: 280 Bytes

Contents

- nodes = collection.select{|item| item.parent_id == parent_id}.sort_by{|u| u.lft}
- if nodes.present?
  %ol.tree{:data => local_assigns[:data]}
    - nodes.each do |node|
      =render :partial => "amalgam/admin/tree/node", :locals =>{ :node => node, :collection => collection }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
amalgam-2.1.4.1 app/views/amalgam/admin/tree/_list.html.haml
amalgam-2.1.4 app/views/amalgam/admin/tree/_list.html.haml
amalgam-2.1.3.1 app/views/amalgam/admin/tree/_list.html.haml
amalgam-2.1.3 app/views/amalgam/admin/tree/_list.html.haml
amalgam-2.1.2 app/views/amalgam/admin/tree/_list.html.haml
amalgam-2.1.1 app/views/amalgam/admin/tree/_list.html.haml