diff options
author | lpsolit%gmail.com <> | 2005-09-03 06:33:35 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-09-03 06:33:35 +0200 |
commit | c3d52c4bb57cb41cc9f15172146bc3644239881a (patch) | |
tree | d910ad3b8cea25773cf315bc1eadbcdcfab4adcb /template/en/default | |
parent | 6b44875b901ac8d1d7383fed017c973a9f954051 (diff) | |
download | bugzilla-c3d52c4bb57cb41cc9f15172146bc3644239881a.tar.gz bugzilla-c3d52c4bb57cb41cc9f15172146bc3644239881a.tar.xz |
Bug 303700: Eliminate deprecated Bugzilla::DB routines from votes.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel a=justdave
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/bug/votes/list-for-bug.html.tmpl | 13 | ||||
-rw-r--r-- | template/en/default/filterexceptions.pl | 2 |
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&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 %] 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', ], |