liquid_feedback_frontend

view app/main/initiative/show.lua @ 111:bf885faf3452

add initiator support in delegation

if a delegation is issued from the initiative view, the initiators
from that one are added to the delegation target list. this makes it easier to delegate to the author without the need to add him to the contact list.
author Daniel Poelzleithner <poelzi@poelzi.org>
date Mon Sep 20 20:32:04 2010 +0200 (2010-09-20)
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

Impressum / About Us