# HG changeset patch # User Daniel Poelzleithner # Date 1286561183 -7200 # Node ID 74f1d4abf19ef5d9a33d0a95f8779979b13575c1 # Parent 329425e4128ef185f226ecbb4bb88be13bcc3716 fix that bailout can not be seen after the vote linkify title diff -r 329425e4128e -r 74f1d4abf19e app/main/vote/list.lua --- a/app/main/vote/list.lua Fri Oct 08 19:29:45 2010 +0200 +++ b/app/main/vote/list.lua Fri Oct 08 20:06:23 2010 +0200 @@ -4,6 +4,7 @@ local member local readonly = false + if member_id then if not issue.closed then error("access denied") @@ -13,25 +14,32 @@ 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 + if not member then + slot.put_into("error", _"This issue is already closed.") + end + member = app.session.member + readonly = true end if member then - slot.put_into("title", _("Ballot of '#{member_name}' for issue ##{issue_id}", { - member_name = member.name, - issue_id = issue.id - })) + local str = _("Ballot of '#{member_name}' for issue ##{issue_id}", + {member_name = string.format('%s', + encode.url{ + module = "member", + view = "show", + id = member.id, + }, + encode.html(member.name)), + issue_id = string.format('%s', + encode.url{ + module = "issue", + view = "show", + id = issue.id, + }, + encode.html(tostring(issue.id))) + } + ) + slot.put_into("title", str) else member = app.session.member slot.put_into("title", _"Voting")