liquid_feedback_frontend

view app/main/area/list.lua @ 57:4f39f0a0d5b5

Listing of updated drafts on start page; Code cleanup; Minor bugfix

MOTD, initiator invite, issues to vote and listing of updated drafts shown as tabs on start page;
Bugfix: Initiator icon only shown when initiatorship has been accepted
author bsw
date Sat Apr 17 21:59:02 2010 +0200 (2010-04-17)
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