From a2b7d94d61be6af21994a99d23d15db9d776b78a Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Tue, 8 Feb 2005 23:47:59 +0000 Subject: Bug 250440 : when voting for bug, jump down to bug Patch by GavinS r=LpSolit a=justdave --- template/en/default/bug/edit.html.tmpl | 2 +- .../en/default/bug/votes/list-for-user.html.tmpl | 31 ++++++++++++++++++---- 2 files changed, 27 insertions(+), 6 deletions(-) (limited to 'template') diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 74d81b462..cf2ed5d7b 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -464,7 +464,7 @@ [% bug.votes %]    Show votes for this [% terms.bug %]    - Vote + Vote for this [% terms.bug %] diff --git a/template/en/default/bug/votes/list-for-user.html.tmpl b/template/en/default/bug/votes/list-for-user.html.tmpl index 968c66862..b7a47e2e0 100644 --- a/template/en/default/bug/votes/list-for-user.html.tmpl +++ b/template/en/default/bug/votes/list-for-user.html.tmpl @@ -19,6 +19,23 @@ # Contributor(s): Gervase Markham #%] +[%# INTERFACE: + # voting_user: hash containing a 'login' field + # + # products: list of hashes containing details of products relating to + # voting: + # name: name of product + # bugs: list of bugs the user has voted for + # onevoteonly: one or more votes allowed per bug? + # total: users current vote count for the product + # maxvotes: max votes allowed for a user in this product + # maxperbug: max votes per bug allowed for a user in this product + # + # bug_id: number; if the user is voting for a bug, this is the bug id + # + # canedit: boolean; Should the votes be presented in a form, or readonly? + #%] + [% PROCESS global/variables.none.tmpl %] [% IF !header_done %] @@ -28,7 +45,9 @@ [% ELSE %] [% title = "Show Votes" %] [% END %] - [% PROCESS global/header.html.tmpl %] + [% PROCESS global/header.html.tmpl + style_urls = [ "skins/standard/voting.css" ] + %] [% ELSE %]
[% END %] @@ -78,9 +97,11 @@ [% FOREACH bug = product.bugs %] - - - + + [% IF bug.id == bug_id && canedit %]Enter New Vote here → + [%- END %] + [% IF canedit %] [% IF product.onevoteonly %] + [% isclosed = !bug.opened %] -- cgit v1.2.3-24-g4f1b