liquid_feedback_frontend
diff app/main/draft/_show.lua @ 718:cc64a4fc6ab6
Cleaned up initiative page
author | bsw |
---|---|
date | Wed Jun 27 14:37:46 2012 +0200 (2012-06-27) |
parents | aec9df5b4cd3 |
children | 32cc544d5a5b |
line diff
1.1 --- a/app/main/draft/_show.lua Wed Jun 27 12:35:34 2012 +0200 1.2 +++ b/app/main/draft/_show.lua Wed Jun 27 14:37:46 2012 +0200 1.3 @@ -1,24 +1,16 @@ 1.4 local draft = param.get("draft", "table") 1.5 local source = param.get("source", atom.boolean) 1.6 1.7 -ui.form{ 1.8 - attr = { class = "vertical" }, 1.9 - record = draft, 1.10 - readonly = true, 1.11 +ui.container{ 1.12 + attr = { class = "draft_content wiki" }, 1.13 content = function() 1.14 - 1.15 - ui.container{ 1.16 - attr = { class = "draft_content wiki" }, 1.17 - content = function() 1.18 - if source then 1.19 - ui.tag{ 1.20 - tag = "pre", 1.21 - content = draft.content 1.22 - } 1.23 - else 1.24 - slot.put(draft:get_content("html")) 1.25 - end 1.26 - end 1.27 - } 1.28 + if source then 1.29 + ui.tag{ 1.30 + tag = "pre", 1.31 + content = draft.content 1.32 + } 1.33 + else 1.34 + slot.put(draft:get_content("html")) 1.35 + end 1.36 end 1.37 }