liquid_feedback_frontend

view app/main/unit/list.lua @ 262:7ef1e03e4057

Added unit chooser and unit support to area list
author bsw
date Tue Feb 07 17:54:00 2012 +0100 (2012-02-07)
parents
children 7196685f9dd7
line source
1 local units = Unit:get_flattened_tree{ active = true }
3 slot.put_into("title", encode.html(config.app_title))
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 label = "name",
22 content = function(unit)
23 ui.link{ text = unit.name, module = "area", view = "list", params = { unit_id = unit.id } }
24 end
25 }
26 }
27 }

Impressum / About Us