summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/votes/list-for-user.html.tmpl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-02-03 18:37:20 +0100
committerlpsolit%gmail.com <>2008-02-03 18:37:20 +0100
commit50d2c3150512323bbbbc0801ab79b06a13dd716d (patch)
tree1c8a6aa652d2a7287bd1b5997d9cfde2498784d9 /template/en/default/bug/votes/list-for-user.html.tmpl
parentd4526af8f063d02ae967e0e81de8782e3b2531a1 (diff)
downloadbugzilla-50d2c3150512323bbbbc0801ab79b06a13dd716d.tar.gz
bugzilla-50d2c3150512323bbbbc0801ab79b06a13dd716d.tar.xz
Bug 378797: Ability to turn "My votes" page into a bug list - Patch by GavinS <bugzilla@chimpychompy.org> r/a=LpSolit
Diffstat (limited to 'template/en/default/bug/votes/list-for-user.html.tmpl')
-rw-r--r--template/en/default/bug/votes/list-for-user.html.tmpl15
1 files changed, 13 insertions, 2 deletions
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 7328b2d77..50dff7d5e 100644
--- a/template/en/default/bug/votes/list-for-user.html.tmpl
+++ b/template/en/default/bug/votes/list-for-user.html.tmpl
@@ -25,6 +25,7 @@
# voting:
# name: name of product
# bugs: list of bugs the user has voted for
+ # bug_ids: list of bug ids 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
@@ -33,6 +34,8 @@
# 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?
+ #
+ # all_bug_ids: List of all bug ids the user has voted for, across all products
#%]
[% PROCESS global/variables.none.tmpl %]
@@ -89,7 +92,10 @@
[% END %]
<tr>
<th>[% product.name FILTER html %]</th>
- <td colspan="3">
+ <td colspan="2" ><a href="buglist.cgi?bug_id=
+ [%- product.bug_ids.join(",") FILTER url_quote %]">([% terms.bug %] list)</a>
+ </td>
+ <td>
[% IF product.maxperbug < product.maxvotes AND
product.maxperbug > 1 %]
<font size="-1">
@@ -142,7 +148,9 @@
</table>
[% IF canedit %]
- <input type="submit" value="Change My Votes" id="change">
+ <input type="submit" value="Change My Votes" id="change"> or
+ <a href="buglist.cgi?bug_id=[% all_bug_ids.join(",") FILTER url_quote %]">view all
+ as [% terms.bug %] list</a>
<br>
<br>
To change your votes,
@@ -154,6 +162,9 @@
change the checkbox
[% END %]
and then click <b>Change My Votes</b>.
+ [% ELSE %]
+ <a href="buglist.cgi?bug_id=[% all_bug_ids.join(",") FILTER url_quote %]">View all
+ as [% terms.bug %] list</a>
[% END %]
</form>
[% ELSE %]