liquid_feedback_frontend

view app/main/suggestion/_suggestion.lua @ 52:88ac7798b562

Several bugfixes (getpic.c, accepted but canceled issues, ...); Listing of available policies

- Bugfixes in fastpath/getpic.c (related to crashes since alpha5)
- Respect Content-Types of images in database
(needs database update, as Content-Type was incorrectly stored by previous versions)
- Typo fixed in help messages
- RSS-Feed (currently only after manual authentication while session is valid)
- Listing of available policies
- German translation fixed: "gebe" -> "gib" (Imperativ)
- Bugfixes related to issues which had been accepted but canceled afterwards
- Prohibit creation of initiatives in disabled areas or with disabled policies
author bsw/jbe
date Thu Apr 15 19:58:25 2010 +0200 (2010-04-15)
parents 0849be391140
children de6b80867eb7
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 app.session.member_id or config.public_access == "pseudonym" then
9 ui.field.text{ label = _"Author", value = suggestion.author.name }
10 else
11 ui.field.text{ label = _"Author", value = _"[not displayed public]" }
12 end
13 ui.field.text{ label = _"Title", name = "name" }
14 ui.container{
15 attr = { class = "suggestion_content wiki" },
16 content = function()
17 ui.tag{
18 tag = "p",
19 content = suggestion.description
20 }
21 end
22 }
23 end
24 }
25 execute.view{
26 module = "suggestion",
27 view = "_list",
28 params = {
29 suggestions_selector = Suggestion:new_selector():add_where{ "id = ?", suggestion.id },
30 initiative = suggestion.initiative,
31 show_name = false,
32 show_filter = false
33 }
34 }

Impressum / About Us