liquid_feedback_frontend
annotate app/main/draft/_show.lua @ 1430:5d891c23c8d7
Removed wrong condition
author | bsw |
---|---|
date | Fri Oct 05 21:58:05 2018 +0200 (2018-10-05) |
parents | 32cc544d5a5b |
children |
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/jbe@1309 | 13 if draft.formatting_engine == "html" or not draft.formatting_engine then |
bsw/jbe@1309 | 14 slot.put(draft.content) |
bsw/jbe@1309 | 15 else |
bsw/jbe@1309 | 16 slot.put(draft:get_content("html")) |
bsw/jbe@1309 | 17 end |
bsw@718 | 18 end |
bsw/jbe@0 | 19 end |
bsw/jbe@0 | 20 } |