liquid_feedback_frontend
annotate app/main/draft/_show.lua @ 348:9e6a23f11f32
Make notification settings work, unified redirect targets in settings
| author | bsw | 
|---|---|
| date | Wed Feb 29 11:51:39 2012 +0100 (2012-02-29) | 
| parents | aec9df5b4cd3 | 
| children | cc64a4fc6ab6 | 
| rev | line source | 
|---|---|
| bsw/jbe@0 | 1 local draft = param.get("draft", "table") | 
| poelzi@160 | 2 local source = param.get("source", atom.boolean) | 
| bsw/jbe@0 | 3 | 
| bsw/jbe@0 | 4 ui.form{ | 
| bsw/jbe@0 | 5 attr = { class = "vertical" }, | 
| bsw/jbe@0 | 6 record = draft, | 
| bsw/jbe@0 | 7 readonly = true, | 
| bsw/jbe@0 | 8 content = function() | 
| bsw/jbe@0 | 9 | 
| bsw@2 | 10 ui.container{ | 
| bsw/jbe@4 | 11 attr = { class = "draft_content wiki" }, | 
| bsw@2 | 12 content = function() | 
| poelzi@160 | 13 if source then | 
| poelzi@160 | 14 ui.tag{ | 
| poelzi@160 | 15 tag = "pre", | 
| poelzi@160 | 16 content = draft.content | 
| poelzi@160 | 17 } | 
| poelzi@160 | 18 else | 
| poelzi@160 | 19 slot.put(draft:get_content("html")) | 
| poelzi@160 | 20 end | 
| bsw@2 | 21 end | 
| bsw@2 | 22 } | 
| bsw/jbe@0 | 23 end | 
| bsw/jbe@0 | 24 } |