liquid_feedback_frontend
annotate app/main/lf2/units.lua @ 291:71eed60f6a41
Closed branch of experimental frontend
| author | jbe | 
|---|---|
| date | Sat Feb 25 15:56:55 2012 +0100 (2012-02-25) | 
| parents | 73dbc9e2bfd4 | 
| children | 
| rev | line source | 
|---|---|
| bsw@217 | 1 slot.set_layout("lf2") | 
| bsw@217 | 2 | 
| bsw@217 | 3 local units = Unit:new_selector():exec() | 
| bsw@217 | 4 | 
| bsw@217 | 5 ui.box{ content = function() | 
| bsw@217 | 6 ui.box_row{ class = "head", content = function() ui.box_col{ class = "head", content = _"Units" } end } | 
| bsw@217 | 7 for i, unit in ipairs(units) do | 
| bsw@217 | 8 | 
| bsw@217 | 9 ui.box_row{ content = function() ui.box_col{ content = function() | 
| bsw@217 | 10 ui.link{ text = unit.name, module = "lf2", view = "unit", id = unit.id } | 
| bsw@217 | 11 end } end } | 
| bsw@217 | 12 | 
| bsw@217 | 13 end | 
| bsw@217 | 14 | 
| bsw@217 | 15 end } |