liquid_feedback_frontend
annotate app/main/unit/_list.lua @ 336:4cdf615ff358
Correctly interpret initiative.winner when showing approved information in initiative view (fix)
| author | bsw | 
|---|---|
| date | Tue Feb 28 18:47:00 2012 +0100 (2012-02-28) | 
| parents | 22e4e26717ac | 
| children | ba310961ba34 | 
| rev | line source | 
|---|---|
| bsw@276 | 1 local units = Unit:get_flattened_tree{ active = true } | 
| bsw@276 | 2 | 
| bsw@276 | 3 ui.list{ | 
| bsw@276 | 4 records = units, | 
| bsw@276 | 5 columns = { | 
| bsw@276 | 6 { | 
| bsw@276 | 7 content = function(unit) | 
| bsw@286 | 8 for i = 1, unit.depth - 1 do | 
| bsw@286 | 9 slot.put("     ") | 
| bsw@286 | 10 end | 
| bsw@301 | 11 ui.link{ text = unit.name, module = "unit", view = "show", id = unit.id } | 
| bsw@276 | 12 end | 
| bsw@276 | 13 } | 
| bsw@276 | 14 } | 
| bsw@276 | 15 } |