liquid_feedback_frontend
changeset 1006:d1c831191360
Handle administrative canceled issues and admin notices in issue view
author | bsw |
---|---|
date | Sun Aug 11 21:56:59 2013 +0200 (2013-08-11) |
parents | 03ce8ee42382 |
children | c547d1cce741 |
files | app/main/issue/_show.lua |
line diff
1.1 --- a/app/main/issue/_show.lua Wed Jul 24 23:10:27 2013 +0200 1.2 +++ b/app/main/issue/_show.lua Sun Aug 11 21:56:59 2013 +0200 1.3 @@ -250,6 +250,23 @@ 1.4 end } 1.5 1.6 if not for_listing then 1.7 + if issue.state == "canceled_by_admin" then 1.8 + ui.container{ 1.9 + attr = { class = "not_admitted_info" }, 1.10 + content = function() 1.11 + ui.container{ content = _("This issue has been canceled by administrative intervention.") } 1.12 + if issue.admin_notice then 1.13 + ui.container{ content = function() slot.put(encode.html_newlines(issue.admin_notice)) end } 1.14 + end 1.15 + end 1.16 + } 1.17 + elseif issue.admin_notice then 1.18 + ui.container{ 1.19 + attr = { class = "not_admitted_info" }, 1.20 + content = function() slot.put(encode.html_newlines(issue.admin_notice)) end 1.21 + } 1.22 + end 1.23 + 1.24 if issue.state == "canceled_issue_not_accepted" then 1.25 local policy = issue.policy 1.26 ui.container{