liquid_feedback_frontend

annotate 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
author bsw
date Sat Apr 17 21:59:02 2010 +0200 (2010-04-17)
parents
children c553898f64cb
rev   line source
bsw@57 1 local lang = locale.get("lang")
bsw@57 2 local basepath = request.get_app_basepath()
bsw@57 3 local file_name = basepath .. "/locale/motd/" .. lang .. ".txt"
bsw@57 4 local file = io.open(file_name)
bsw@57 5 if file ~= nil then
bsw@57 6 local help_text = file:read("*a")
bsw@57 7 if #help_text > 0 then
bsw@57 8 ui.container{
bsw@57 9 attr = { class = "wiki" },
bsw@57 10 content = function()
bsw@57 11 slot.put(format.wiki_text(help_text))
bsw@57 12 end
bsw@57 13 }
bsw@57 14 end
bsw@57 15 end

Impressum / About Us