liquid_feedback_frontend
annotate app/main/unit/_list.lua @ 816:3e8b50739577
Allow member search only with access level everything
author | bsw |
---|---|
date | Fri Jul 06 14:17:47 2012 +0200 (2012-07-06) |
parents | ba310961ba34 |
children | 701a5cf6b067 |
rev | line source |
---|---|
bsw@276 | 1 local units = Unit:get_flattened_tree{ active = true } |
bsw@276 | 2 |
bsw@462 | 3 ui.container{ attr = { class = "box" }, content = function() |
bsw@462 | 4 |
bsw@462 | 5 ui.list{ |
bsw@462 | 6 attr = { class = "unit_list" }, |
bsw@462 | 7 records = units, |
bsw@462 | 8 columns = { |
bsw@462 | 9 { |
bsw@462 | 10 content = function(unit) |
bsw@462 | 11 for i = 1, unit.depth - 1 do |
bsw@462 | 12 slot.put(" ") |
bsw@462 | 13 end |
bsw@462 | 14 ui.link{ text = unit.name, module = "unit", view = "show", id = unit.id } |
bsw@462 | 15 end |
bsw@462 | 16 } |
bsw@276 | 17 } |
bsw@276 | 18 } |
bsw@462 | 19 |
bsw@462 | 20 end } |