aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-02-08 23:47:59 +0000
committertravis%sedsystems.ca <>2005-02-08 23:47:59 +0000
commita2b7d94d61be6af21994a99d23d15db9d776b78a (patch)
tree138347029944dae991c7bf358be3af8ce2e840f7 /template/en/default
parentadbc63fabd697922571393564fb40dbed0909a26 (diff)
downloadbugs-a2b7d94d61be6af21994a99d23d15db9d776b78a.tar
bugs-a2b7d94d61be6af21994a99d23d15db9d776b78a.tar.gz
bugs-a2b7d94d61be6af21994a99d23d15db9d776b78a.tar.bz2
bugs-a2b7d94d61be6af21994a99d23d15db9d776b78a.tar.xz
bugs-a2b7d94d61be6af21994a99d23d15db9d776b78a.zip
Bug 250440 : when voting for bug, jump down to bug
Patch by GavinS <bugzilla@chimpychompy.org> r=LpSolit a=justdave
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/bug/edit.html.tmpl2
-rw-r--r--template/en/default/bug/votes/list-for-user.html.tmpl31
2 files changed, 27 insertions, 6 deletions
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 %]&nbsp;&nbsp;&nbsp;
<a href="votes.cgi?action=show_bug&amp;bug_id=[% bug.bug_id %]">Show
votes for this [% terms.bug %]</a>&nbsp;&nbsp;&nbsp;
- <a href="votes.cgi?action=show_user&amp;bug_id=[% bug.bug_id %]">Vote
+ <a href="votes.cgi?action=show_user&amp;bug_id=[% bug.bug_id %]#vote_[% bug.bug_id %]">Vote
for this [% terms.bug %]</a>
</td>
</tr>
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 <gerv@gerv.net>
#%]
+[%# 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 %]
<hr>
[% END %]
@@ -78,9 +97,11 @@
</tr>
[% FOREACH bug = product.bugs %]
- <tr>
- <td></td>
- <td align="right">
+ <tr [% IF bug.id == bug_id && canedit %]
+ class="bz_bug_being_voted_on" [% END %]>
+ <td>[% IF bug.id == bug_id && canedit %]Enter New Vote here &rarr;
+ [%- END %]</td>
+ <td align="right"><a name="vote_[% bug.id %]">
[% IF canedit %]
[% IF product.onevoteonly %]
<input type="checkbox" name="[% bug.id %]" value="1"
@@ -92,7 +113,7 @@
[% ELSE %]
[% bug.count %]
[% END %]
- </td>
+ </a></td>
<td align="right">
[% isclosed = !bug.opened %]
<a href="show_bug.cgi?id=[% bug.id %]">