liquid_feedback_frontend
view app/main/issue/show.lua @ 526:18cd8595459b
Fixes for public access
author | bsw |
---|---|
date | Fri May 18 19:21:45 2012 +0200 (2012-05-18) |
parents | 63d6549cc00b |
children | 4cee33ad5e16 |
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 slot.select("head", function()
8 execute.view{ module = "area", view = "_head", params = { area = issue.area } }
9 end)
11 util.help("issue.show")
13 if issue.state == "cancelled" then
14 local policy = issue.policy
15 ui.container{
16 attr = { class = "not_admitted_info" },
17 content = _("This issue has been cancelled. It failed the quorum of #{quorum}.", { quorum = format.percentage(policy.issue_quorum_num / policy.issue_quorum_den) })
18 }
19 end
21 slot.select("head", function()
22 execute.view{ module = "issue", view = "_show", params = { issue = issue } }
23 end )
26 execute.view{
27 module = "issue",
28 view = "show_tab",
29 params = { issue = issue }
30 }
32 if issue.snapshot then
33 slot.put("<br />")
34 ui.field.timestamp{ label = _"Last snapshot:", value = issue.snapshot }
35 end