liquid_feedback_frontend
view app/main/unit/_list.lua @ 394:50d543a7fc05
Show areas on member page for page owner instead of current member
| author | bsw |
|---|---|
| date | Mon Mar 05 22:38:01 2012 +0100 (2012-03-05) |
| parents | 22e4e26717ac |
| children | ba310961ba34 |
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 = "unit", view = "show", id = unit.id }
12 end
13 }
14 }
15 }
