liquid_feedback_frontend

view app/main/initiative/show.lua @ 51:0849be391140

Public read access; Read-only API for initiatives; Prepared integration of OpenID
author bsw
date Sun Apr 04 22:05:11 2010 +0200 (2010-04-04)
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