liquid_feedback_frontend
view app/main/issue/show.lua @ 457:f44df8e5ea18
Changed german help text for home page
| author | bsw | 
|---|---|
| date | Mon Mar 12 18:46:30 2012 +0100 (2012-03-12) | 
| parents | 7196685f9dd7 | 
| children | 63d6549cc00b | 
 line source
     1 local issue = Issue:by_id(param.get_id())
     3 if not app.html_title.title then
     4 	app.html_title.title = _("Issue ##{id}", { id = issue.id })
     5 end
     7 execute.view{
     8   module = "issue",
     9   view = "_show_head",
    10   params = { issue = issue }
    11 }
    13 --[[
    14 if not issue.fully_frozen and not issue.closed then
    15   slot.select("actions", function()
    16     ui.link{
    17       content = function()
    18         ui.image{ static = "icons/16/script_add.png" }
    19         slot.put(_"Create alternative initiative")
    20       end,
    21       module = "initiative",
    22       view = "new",
    23       params = { issue_id = issue.id }
    24     }
    25   end)
    26 end
    27 --]]
    29 util.help("issue.show")
    31 if issue.state == "cancelled" then
    32   local policy = issue.policy
    33   ui.container{
    34     attr = { class = "not_admitted_info" },
    35     content = _("This issue has been cancelled. It failed the quorum of #{quorum}.", { quorum = format.percentage(policy.issue_quorum_num / policy.issue_quorum_den) })
    36   }
    37 end
    40 execute.view{
    41   module = "issue",
    42   view = "show_tab",
    43   params = { issue = issue }
    44 }
    46 if issue.snapshot then
    47   slot.put("<br />")
    48   ui.field.timestamp{ label = _"Last snapshot:", value = issue.snapshot }
    49 end
