liquid_feedback_frontend
view app/main/index/_motd.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
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 | |
children | c553898f64cb |
line source
1 local lang = locale.get("lang")
2 local basepath = request.get_app_basepath()
3 local file_name = basepath .. "/locale/motd/" .. lang .. ".txt"
4 local file = io.open(file_name)
5 if file ~= nil then
6 local help_text = file:read("*a")
7 if #help_text > 0 then
8 ui.container{
9 attr = { class = "wiki" },
10 content = function()
11 slot.put(format.wiki_text(help_text))
12 end
13 }
14 end
15 end