liquid_feedback_frontend
changeset 138:7e7d629390d5
don't show voting page when issue is already closed
fixes bug #335
fixes bug #335
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Wed Oct 06 13:47:38 2010 +0200 (2010-10-06) |
parents | 43ac94c7575b |
children | bc2570b97c09 |
files | app/main/vote/list.lua |
line diff
1.1 --- a/app/main/vote/list.lua Wed Oct 06 13:05:30 2010 +0200 1.2 +++ b/app/main/vote/list.lua Wed Oct 06 13:47:38 2010 +0200 1.3 @@ -12,6 +12,21 @@ 1.4 readonly = true 1.5 end 1.6 1.7 +if issue.closed then 1.8 + slot.put_into("error", _"This issue is already closed.") 1.9 + 1.10 + slot.select("actions", function() 1.11 + ui.link{ 1.12 + content = _("Issue ##{id}", { id = issue.id }), 1.13 + module = "issue", 1.14 + view = "show", 1.15 + id = issue.id 1.16 + } 1.17 + end 1.18 + ) 1.19 + return 1.20 +end 1.21 + 1.22 if member then 1.23 slot.put_into("title", _("Ballot of '#{member_name}' for issue ##{issue_id}", { 1.24 member_name = member.name,