liquid_feedback_frontend

view app/main/area/list.lua @ 64:3ec1dea6eefb

Bug when creating alternative initiatives fixed; Policy list link only shown when creating new issue
author bsw
date Thu Apr 22 17:05:18 2010 +0200 (2010-04-22)
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 --]]

Impressum / About Us