liquid_feedback_frontend
view app/main/suggestion/_suggestion.lua @ 157:24e47baf5f9b
strip html from fallback title
if the slot is used for title, make sure the html is stripped from it
if the slot is used for title, make sure the html is stripped from it
| author | Daniel Poelzleithner <poelzi@poelzi.org> |
|---|---|
| date | Fri Oct 08 20:31:09 2010 +0200 (2010-10-08) |
| parents | 20e0b64cc1f9 |
| children | 105abd1d4996 |
line source
1 local suggestion = param.get("suggestion", "table")
3 ui.form{
4 attr = { class = "vertical" },
5 record = suggestion,
6 readonly = true,
7 content = function()
8 if suggestion.author then
9 suggestion.author:ui_field_text{label=_"Author"}
10 end
11 ui.field.text{ label = _"Title", name = "name" }
12 ui.container{
13 attr = { class = "suggestion_content wiki" },
14 content = function()
15 ui.tag{
16 tag = "pre",
17 content = suggestion.description
18 }
19 end
20 }
21 end
22 }
23 execute.view{
24 module = "suggestion",
25 view = "_list",
26 params = {
27 suggestions_selector = Suggestion:new_selector():add_where{ "id = ?", suggestion.id },
28 initiative = suggestion.initiative,
29 show_name = false,
30 show_filter = false
31 }
32 }
