liquid_feedback_frontend
view app/main/draft/_show.lua @ 1176:5ae3b8d819c5
Added missing WebMCP 2.0 support for member image upload
| author | bsw | 
|---|---|
| date | Thu Mar 26 19:32:44 2015 +0100 (2015-03-26) | 
| parents | cc64a4fc6ab6 | 
| children | 32cc544d5a5b | 
 line source
     1 local draft = param.get("draft", "table")
     2 local source = param.get("source", atom.boolean)
     4 ui.container{
     5   attr = { class = "draft_content wiki" },
     6   content = function()
     7     if source then
     8       ui.tag{
     9         tag = "pre",
    10         content = draft.content
    11       }
    12     else
    13       slot.put(draft:get_content("html"))
    14     end
    15   end
    16 }
