bsw@217: slot.set_layout("lf2") bsw@217: bsw@217: local units = Unit:new_selector():exec() bsw@217: bsw@217: ui.box{ content = function() bsw@217: ui.box_row{ class = "head", content = function() ui.box_col{ class = "head", content = _"Units" } end } bsw@217: for i, unit in ipairs(units) do bsw@217: bsw@217: ui.box_row{ content = function() ui.box_col{ content = function() bsw@217: ui.link{ text = unit.name, module = "lf2", view = "unit", id = unit.id } bsw@217: end } end } bsw@217: bsw@217: end bsw@217: bsw@217: end }