liquid_feedback_frontend

view app/main/draft/_show.lua @ 274:aec9df5b4cd3

More optical enhancements and repositioning of elements
author bsw
date Sun Feb 12 12:20:19 2012 +0100 (2012-02-12)
parents cc7650c7053f
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 }

Impressum / About Us