liquid_feedback_frontend
view app/main/suggestion/show_tab.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
- 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 |
line source
1 local suggestion = param.get("suggestion", "table") or Suggestion:by_id(param.get("suggestion_id"))
3 local tabs = {
4 module = "suggestion",
5 view = "show_tab",
6 static_params = {
7 suggestion_id = suggestion.id
8 },
9 }
11 tabs[#tabs+1] =
12 {
13 name = "description",
14 label = _"Suggestion",
15 module = "suggestion",
16 view = "_suggestion",
17 params = {
18 suggestion = suggestion
19 }
20 }
22 if app.session.member_id then
23 tabs[#tabs+1] =
24 {
25 name = "opinions",
26 label = _"Opinions",
27 module = "suggestion",
28 view = "_opinions",
29 params = {
30 suggestion = suggestion
31 }
32 }
33 end
35 ui.tabs(tabs)
