liquid_feedback_frontend
annotate app/main/draft/_show.lua @ 300:cb9ccdd024f2
Do not check voting rights for virtual delegation target 'abandon'
| author | bsw | 
|---|---|
| date | Sat Feb 25 22:29:33 2012 +0100 (2012-02-25) | 
| 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 } |