liquid_feedback_frontend
view app/main/unit/list.lua @ 274:aec9df5b4cd3
More optical enhancements and repositioning of elements
author | bsw |
---|---|
date | Sun Feb 12 12:20:19 2012 +0100 (2012-02-12) |
parents | 7196685f9dd7 |
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 }