liquid_feedback_frontend
view app/main/unit/list.lua @ 273:7196685f9dd7
More optical enhancements, more repositioning
author | bsw |
---|---|
date | Wed Feb 08 18:49:22 2012 +0100 (2012-02-08) |
parents | 7ef1e03e4057 |
children | f460555c9896 |
line source
1 local units = Unit:get_flattened_tree{ active = true }
3 slot.put_into("title", _"Unit list")
5 if not app.session.member_id and config.motd_public then
6 local help_text = config.motd_public
7 ui.container{
8 attr = { class = "wiki motd" },
9 content = function()
10 slot.put(format.wiki_text(help_text))
11 end
12 }
13 end
15 util.help("unit.list", _"Unit list")
17 ui.list{
18 records = units,
19 columns = {
20 {
21 content = function(unit)
22 ui.link{ text = unit.name, module = "area", view = "list", params = { unit_id = unit.id } }
23 end
24 }
25 }
26 }