liquid_feedback_frontend
view app/main/unit/_list.lua @ 298:724ac69b7c97
Fix voting_right_for_unit_id argument for member selector builder
| author | bsw |
|---|---|
| date | Sat Feb 25 22:27:03 2012 +0100 (2012-02-25) |
| parents | c587d8762e62 |
| children | 22e4e26717ac |
line source
1 local units = Unit:get_flattened_tree{ active = true }
3 ui.list{
4 records = units,
5 columns = {
6 {
7 content = function(unit)
8 for i = 1, unit.depth - 1 do
9 slot.put(" ")
10 end
11 ui.link{ text = unit.name, module = "area", view = "list", params = { unit_id = unit.id } }
12 end
13 }
14 }
15 }
