liquid_feedback_frontend
view app/main/area/list.lua @ 246:6efacc81ce81
Changed delegation_chain call in show_box to reflect changes in core-2
| author | bsw | 
|---|---|
| date | Fri Dec 30 03:10:11 2011 +0100 (2011-12-30) | 
| parents | 6725c13b6ce0 | 
| children | 8e284d4319be | 
 line source
     1 -- TODO support multiple units
     2 local unit_id = param.get("units", atom.integer)
     3 local areas_selector = Area:build_selector{ active = true, unit_id = unit_id }
     6 if app.session.member_id then
     7   slot.put_into("title", _'Area list')
     8 else
     9   slot.put_into("title", encode.html(config.app_title))
    10 end
    13 if not app.session.member_id and config.motd_public then
    14   local help_text = config.motd_public
    15   ui.container{
    16     attr = { class = "wiki motd" },
    17     content = function()
    18       slot.put(format.wiki_text(help_text))
    19     end
    20   }
    21 end
    23 util.help("area.list", _"Area list")
    26 execute.view{
    27   module = "area",
    28   view = "_list",
    29   params = { areas_selector = areas_selector }
    30 }
