# HG changeset patch # User Daniel Poelzleithner # Date 1286365658 -7200 # Node ID 7e7d629390d5b8015f496cf99bcbb3ceb74a3842 # Parent 43ac94c7575bf5ce8f949532cb318725b1b88a9a don't show voting page when issue is already closed fixes bug #335 diff -r 43ac94c7575b -r 7e7d629390d5 app/main/vote/list.lua --- a/app/main/vote/list.lua Wed Oct 06 13:05:30 2010 +0200 +++ b/app/main/vote/list.lua Wed Oct 06 13:47:38 2010 +0200 @@ -12,6 +12,21 @@ readonly = true end +if issue.closed then + slot.put_into("error", _"This issue is already closed.") + + slot.select("actions", function() + ui.link{ + content = _("Issue ##{id}", { id = issue.id }), + module = "issue", + view = "show", + id = issue.id + } + end + ) + return +end + if member then slot.put_into("title", _("Ballot of '#{member_name}' for issue ##{issue_id}", { member_name = member.name,