liquid_feedback_frontend
view app/main/draft/_show.lua @ 298:724ac69b7c97
Fix voting_right_for_unit_id argument for member selector builder
author | bsw |
---|---|
date | Sat Feb 25 22:27:03 2012 +0100 (2012-02-25) |
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 }