liquid_feedback_frontend
view app/main/draft/_show.lua @ 613:d0f99272f675
Fixed displaying of help texts
| author | bsw | 
|---|---|
| date | Sun Jun 24 23:36:21 2012 +0200 (2012-06-24) | 
| parents | aec9df5b4cd3 | 
| children | cc64a4fc6ab6 | 
 line source
     1 local draft = param.get("draft", "table")
     2 local source = param.get("source", atom.boolean)
     4 ui.form{
     5   attr = { class = "vertical" },
     6   record = draft,
     7   readonly = true,
     8   content = function()
    10     ui.container{
    11       attr = { class = "draft_content wiki" },
    12       content = function()
    13         if source then
    14           ui.tag{
    15             tag = "pre",
    16             content = draft.content
    17           }
    18         else
    19           slot.put(draft:get_content("html"))
    20         end
    21       end
    22     }
    23   end
    24 }
