liquid_feedback_frontend
view app/main/initiative/show.lua @ 44:b2af739019ba
Fixed two spelling issues in Esperanto translation.
| author | Dinu Gherman | 
|---|---|
| date | Mon Mar 08 22:58:57 2010 +0100 (2010-03-08) | 
| 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
