annotate app/main/area/_issue_list.lua @ 1668:6d75df24e66e
Updated German translation
 | author | 
 bsw | 
 | date | 
 Sun Mar 07 09:52:36 2021 +0100 (2021-03-07) | 
 | parents | 
 701a5cf6b067  | 
 | children | 
  | 
 
 | rev | 
   line source | 
| 
bsw@1045
 | 
     1 local issues_selector = param.get("issues_selector", "table")
 | 
| 
bsw@1045
 | 
     2 local phase = param.get("phase")
 | 
| 
bsw@1045
 | 
     3 
 | 
| 
bsw@1045
 | 
     4 if phase == "admission" then
 | 
| 
bsw@1045
 | 
     5   headline = _"Issues in admission phase"
 | 
| 
bsw@1045
 | 
     6 elseif phase == "discussion" then
 | 
| 
bsw@1045
 | 
     7   headline = _"Issues in discussion phase"
 | 
| 
bsw@1045
 | 
     8 elseif phase == "verification" then
 | 
| 
bsw@1045
 | 
     9   headline = _"Issues in verification phase"
 | 
| 
bsw@1045
 | 
    10 elseif phase == "voting" then
 | 
| 
bsw@1045
 | 
    11   headline = _"Issues in voting phase"
 | 
| 
bsw@1045
 | 
    12 elseif phase == "closed" then
 | 
| 
bsw@1045
 | 
    13   headline = _"Closed issues"
 | 
| 
bsw@1045
 | 
    14 end
 | 
| 
bsw@1045
 | 
    15   
 | 
| 
bsw@1045
 | 
    16 ui.heading { level = "1", content = headline }
 | 
| 
bsw@1045
 | 
    17 
 | 
| 
bsw@1045
 | 
    18 local issues = issues_selector:exec()
 | 
| 
bsw@1045
 | 
    19 
 | 
| 
bsw@1045
 | 
    20 ui.tag {
 | 
| 
bsw@1045
 | 
    21   tag = "ul",
 | 
| 
bsw@1045
 | 
    22   attr = { class = { "issues" } },
 | 
| 
bsw@1045
 | 
    23   content = function ()
 | 
| 
bsw@1045
 | 
    24 
 | 
| 
bsw@1045
 | 
    25     for i, issue in ipairs(issues) do
 | 
| 
bsw@1045
 | 
    26       
 | 
| 
bsw@1045
 | 
    27       ui.tag { tag = "li", content = function ()
 | 
| 
bsw@1045
 | 
    28         ui.heading { level = 2, content = issue.name }
 | 
| 
bsw@1045
 | 
    29         
 | 
| 
bsw@1045
 | 
    30         execute.view { 
 | 
| 
bsw@1045
 | 
    31           module = "initiative", view = "_list", params = {
 | 
| 
bsw@1045
 | 
    32             initiatives = issue.initiatives,
 | 
| 
bsw@1045
 | 
    33             state = phase
 | 
| 
bsw@1045
 | 
    34           }
 | 
| 
bsw@1045
 | 
    35         }
 | 
| 
bsw@1045
 | 
    36         
 | 
| 
bsw@1045
 | 
    37         slot.put ( '<hr class="nice" />' )
 | 
| 
bsw@1045
 | 
    38         
 | 
| 
bsw@1045
 | 
    39       end }
 | 
| 
bsw@1045
 | 
    40       
 | 
| 
bsw@1045
 | 
    41     end
 | 
| 
bsw@1045
 | 
    42   end
 | 
| 
bsw@1045
 | 
    43 } |