diff options
Diffstat (limited to 'template/en/default/bug/votes/list-for-bug.html.tmpl')
-rw-r--r-- | template/en/default/bug/votes/list-for-bug.html.tmpl | 13 |
1 files changed, 7 insertions, 6 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&user=[% voter.name FILTER url_quote %]"> - [% voter.name FILTER html %] + <a href="votes.cgi?action=show_user&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 %] |