liquid_feedback_frontend
view app/main/unit/_list.lua @ 286:c587d8762e62
Registration process updated for Core 2.0, lockable member fields, notification settings
author | bsw |
---|---|
date | Sat Feb 25 11:51:37 2012 +0100 (2012-02-25) |
parents | f460555c9896 |
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 }