liquid_feedback_frontend
annotate app/main/lf2/units.lua @ 217:73dbc9e2bfd4
Cummulative patch for enhancements at next generation frontend
author | bsw |
---|---|
date | Sat Mar 12 19:22:50 2011 +0100 (2011-03-12) |
parents | |
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 } |