summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/bug/votes/list-for-bug.html.tmpl13
-rw-r--r--template/en/default/filterexceptions.pl2
2 files changed, 8 insertions, 7 deletions
diff --git a/template/en/default/bug/votes/list-for-bug.html.tmpl b/template/en/default/bug/votes/list-for-bug.html.tmpl
index 46fb755ff..4b4514a90 100644
--- a/template/en/default/bug/votes/list-for-bug.html.tmpl
+++ b/template/en/default/bug/votes/list-for-bug.html.tmpl
@@ -22,9 +22,8 @@
[%# INTERFACE:
# bug_id: integer. ID of the bug we are listing the votes for.
# users: list of hashes. May be empty. Each hash has two members:
- # name: string. The login name of the user whose vote is attached
- # count: integer. The number of times that user has votes for this bug.
- # total: integer. The total number of votes for this bug.
+ # login_name: string. The login name of the user whose vote is attached
+ # vote_count: integer. The number of times that user has votes for this bug.
#%]
[% PROCESS global/variables.none.tmpl %]
@@ -34,6 +33,7 @@
h2 = "$terms.Bug <a href=\"show_bug.cgi?id=$bug_id\">$bug_id</a>"
%]
+[% total = 0 %]
<table cellspacing="4">
<tr>
<th>Who</th>
@@ -41,14 +41,15 @@
</tr>
[% FOREACH voter = users %]
+ [% total = total + voter.vote_count %]
<tr>
<td>
- <a href="votes.cgi?action=show_user&amp;user=[% voter.name FILTER url_quote %]">
- [% voter.name FILTER html %]
+ <a href="votes.cgi?action=show_user&amp;user=[% voter.login_name FILTER url_quote %]">
+ [% voter.login_name FILTER html %]
</a>
</td>
<td align="right">
- [% voter.count %]
+ [% voter.vote_count %]
</td>
</tr>
[% END %]
diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl
index 28ea2c7ba..f9e2bd241 100644
--- a/template/en/default/filterexceptions.pl
+++ b/template/en/default/filterexceptions.pl
@@ -388,7 +388,7 @@
],
'bug/votes/list-for-bug.html.tmpl' => [
- 'voter.count',
+ 'voter.vote_count',
'total',
],