bsw@276: local units = Unit:get_flattened_tree{ active = true } bsw@276: bsw@276: ui.list{ bsw@276: records = units, bsw@276: columns = { bsw@276: { bsw@276: content = function(unit) bsw@286: for i = 1, unit.depth - 1 do bsw@286: slot.put("     ") bsw@286: end bsw@301: ui.link{ text = unit.name, module = "unit", view = "show", id = unit.id } bsw@276: end bsw@276: } bsw@276: } bsw@276: }