liquid_feedback_frontend
view app/main/initiative/show.lua @ 41:53a45356c107
Several bugfixes, including bugfix in timeline
- Fixed grouping of multiple new drafts in timeline
- Do not allow to add suggestions when issue is half frozen
- Do not show initiator invitations for (half-)frozen or closed issues
- Fixed problem with duplicates in display of vote-later requests
- Clarified german "member is participating" info text in delegation chain
- Hide inactive members from member listing
- Fixed grouping of multiple new drafts in timeline
- Do not allow to add suggestions when issue is half frozen
- Do not show initiator invitations for (half-)frozen or closed issues
- Fixed problem with duplicates in display of vote-later requests
- Clarified german "member is participating" info text in delegation chain
- Hide inactive members from member listing
| author | bsw |
|---|---|
| date | Sun Mar 07 15:36:54 2010 +0100 (2010-03-07) |
| parents | 00d1004545f1 |
| children | 7d0f4721d2f3 |
line source
1 local initiative = param.get("initiative", "table")
3 if not initiative then
4 initiative = Initiative:new_selector():add_where{ "id = ?", param.get_id()}:single_object_mode():exec()
5 end
7 if request.get_json_request_slots() then
8 execute.view{
9 module = "initiative",
10 view = "show_partial",
11 params = {
12 initiative = initiative
13 }
14 }
15 elseif
16 config.user_tab_mode == "accordeon" or
17 config.user_tab_mode == "accordeon_first_expanded" or
18 config.user_tab_mode == "accordeon_all_expanded"
19 then
20 execute.view{
21 module = "issue",
22 view = "show",
23 id = initiative.issue_id,
24 params = {
25 for_initiative_id = initiative.id
26 }
27 }
28 else
29 execute.view{
30 module = "initiative",
31 view = "show_static",
32 params = {
33 initiative = initiative
34 }
35 }
36 end
