liquid_feedback_frontend
annotate app/main/draft/_show.lua @ 1102:9e3f73a026db
Fixed draft preview style when creating new initiative
| author | bsw | 
|---|---|
| date | Mon Oct 27 12:09:53 2014 +0100 (2014-10-27) | 
| parents | cc64a4fc6ab6 | 
| children | 32cc544d5a5b | 
| 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@718 | 4 ui.container{ | 
| bsw@718 | 5 attr = { class = "draft_content wiki" }, | 
| bsw/jbe@0 | 6 content = function() | 
| bsw@718 | 7 if source then | 
| bsw@718 | 8 ui.tag{ | 
| bsw@718 | 9 tag = "pre", | 
| bsw@718 | 10 content = draft.content | 
| bsw@718 | 11 } | 
| bsw@718 | 12 else | 
| bsw@718 | 13 slot.put(draft:get_content("html")) | 
| bsw@718 | 14 end | 
| bsw/jbe@0 | 15 end | 
| bsw/jbe@0 | 16 } |