From c3d52c4bb57cb41cc9f15172146bc3644239881a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 3 Sep 2005 04:33:35 +0000 Subject: Bug 303700: Eliminate deprecated Bugzilla::DB routines from votes.cgi - Patch by Frédéric Buclin r=joel a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/bug/votes/list-for-bug.html.tmpl | 13 +++++++------ template/en/default/filterexceptions.pl | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'template') 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 $bug_id" %] +[% total = 0 %] @@ -41,14 +41,15 @@ [% FOREACH voter = users %] + [% total = total + voter.vote_count %] [% 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', ], -- cgit v1.2.3-24-g4f1b
Who
- - [% voter.name FILTER html %] + + [% voter.login_name FILTER html %] - [% voter.count %] + [% voter.vote_count %]