liquid_feedback_frontend

diff env/util/help.lua @ 81:134fce4bede3

Cache for rendered wiki texts; Accountless API keys; Reverse id order for initiative API
- Support for caching html version of drafts
- Using pre-rendered html versions of help messages
- Added Support for api keys not connected to an account
- Added order option "id_desc" to initiative API
author bsw
date Sat Jul 24 17:22:05 2010 +0200 (2010-07-24)
parents 0849be391140
children
line diff
     1.1 --- a/env/util/help.lua	Thu Jul 15 18:28:24 2010 +0200
     1.2 +++ b/env/util/help.lua	Sat Jul 24 17:22:05 2010 +0200
     1.3 @@ -37,7 +37,7 @@
     1.4          }
     1.5          local lang = locale.get("lang")
     1.6          local basepath = request.get_app_basepath() 
     1.7 -        local file_name = basepath .. "/locale/help/" .. id .. "." .. lang .. ".txt"
     1.8 +        local file_name = basepath .. "/locale/help/" .. id .. "." .. lang .. ".txt.html"
     1.9          local file = io.open(file_name)
    1.10          if file ~= nil then
    1.11            local help_text = file:read("*a")
    1.12 @@ -45,7 +45,7 @@
    1.13              ui.container{
    1.14                attr = { class = "wiki" },
    1.15                content = function()
    1.16 -                slot.put(format.wiki_text(help_text))
    1.17 +                slot.put(help_text)
    1.18                end
    1.19              }
    1.20            else

Impressum / About Us