liquid_feedback_frontend
view app/main/draft/_show.lua @ 1404:f99e7df399e6
Text case change
| author | bsw | 
|---|---|
| date | Mon Aug 13 19:52:00 2018 +0200 (2018-08-13) | 
| parents | 32cc544d5a5b | 
| children | 
 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       if draft.formatting_engine == "html" or not draft.formatting_engine then
    14         slot.put(draft.content)
    15       else
    16         slot.put(draft:get_content("html"))
    17       end
    18     end
    19   end
    20 }
