liquid_feedback_frontend
view app/main/area/list.lua @ 58:29caccea23cb
Icon static/icons/16/bell.png added
| author | bsw | 
|---|---|
| date | Sun Apr 18 18:19:58 2010 +0200 (2010-04-18) | 
| parents | 0849be391140 | 
| children | c553898f64cb | 
 line source
     1 if app.session.member_id then
     2   slot.put_into("title", _'Area list')
     3 else
     4   slot.put_into("title", encode.html(config.app_title))
     5 end
     7 local lang = locale.get("lang")
     8 local basepath = request.get_app_basepath() 
     9 local file_name = basepath .. "/locale/motd/" .. lang .. "_public.txt"
    10 local file = io.open(file_name)
    11 if file ~= nil then
    12   local help_text = file:read("*a")
    13   if #help_text > 0 then
    14     ui.container{
    15       attr = { class = "motd wiki" },
    16       content = function()
    17         slot.put(format.wiki_text(help_text))
    18       end
    19     }
    20   end
    21 end
    23 util.help("area.list", _"Area list")
    25 local areas_selector = Area:new_selector():add_where("active")
    27 execute.view{
    28   module = "area",
    29   view = "_list",
    30   params = { areas_selector = areas_selector }
    31 }
    33 --[[
    34 execute.view{
    35   module = "delegation",
    36   view = "_show_box"
    37 }
    38 --]]
