summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-05-07 04:16:46 +0200
committergerv%gerv.net <>2002-05-07 04:16:46 +0200
commit6428fbf3f1f3cf3a1fd9fd2062836366ae2f388c (patch)
tree25cb33550b6e1d59c3781920489b407d17f8b690 /template/en/default/bug
parent3b0b95d36d3e8b4ebea4d8e32d5337623cc13ba2 (diff)
downloadbugzilla-6428fbf3f1f3cf3a1fd9fd2062836366ae2f388c.tar.gz
bugzilla-6428fbf3f1f3cf3a1fd9fd2062836366ae2f388c.tar.xz
Bug 141036 - add INTERFACE comments to all templates. This does the first 20 or so - many more to go... Patch by gerv; 2xr=bbaetz.
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/choose-xml.html.tmpl4
-rw-r--r--template/en/default/bug/create/comment.txt.tmpl5
-rw-r--r--template/en/default/bug/votes/delete-all.html.tmpl4
-rw-r--r--template/en/default/bug/votes/list-for-bug.html.tmpl8
-rw-r--r--template/en/default/bug/votes/list-for-user.html.tmpl10
5 files changed, 27 insertions, 4 deletions
diff --git a/template/en/default/bug/choose-xml.html.tmpl b/template/en/default/bug/choose-xml.html.tmpl
index d6bae93f6..341df9414 100644
--- a/template/en/default/bug/choose-xml.html.tmpl
+++ b/template/en/default/bug/choose-xml.html.tmpl
@@ -19,6 +19,10 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
+[%# INTERFACE:
+ # This template has no interface.
+ #%]
+
[% PROCESS global/header.html.tmpl
title = "Display bugs as XML"
%]
diff --git a/template/en/default/bug/create/comment.txt.tmpl b/template/en/default/bug/create/comment.txt.tmpl
index 21a9f3ff8..595ad3a80 100644
--- a/template/en/default/bug/create/comment.txt.tmpl
+++ b/template/en/default/bug/create/comment.txt.tmpl
@@ -18,4 +18,9 @@
#
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
+[%# INTERFACE:
+ # form: hash. This is the $::FORM variable from a bug submission (i.e. the
+ # fields on a template from enter_bug.cgi.) It can be used to pull out
+ # various custom fields and format an initial Description entry from them.
+ #%]
[% form.comment %]
diff --git a/template/en/default/bug/votes/delete-all.html.tmpl b/template/en/default/bug/votes/delete-all.html.tmpl
index f9df23894..c50b0cb1c 100644
--- a/template/en/default/bug/votes/delete-all.html.tmpl
+++ b/template/en/default/bug/votes/delete-all.html.tmpl
@@ -19,6 +19,10 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
+[%# INTERFACE:
+ # This template has no interface.
+ #%]
+
[% PROCESS global/header.html.tmpl
title = "Remove your votes?"
%]
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 b58ba6ff4..cb68a2a47 100644
--- a/template/en/default/bug/votes/list-for-bug.html.tmpl
+++ b/template/en/default/bug/votes/list-for-bug.html.tmpl
@@ -19,6 +19,14 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
+[%# 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.
+ #%]
+
[% PROCESS global/header.html.tmpl
title = "Show Votes"
h2 = "Bug <a href='show_bug.cgi?id=$bug_id'>$bug_id</a>"
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 261e0f864..4797d71b7 100644
--- a/template/en/default/bug/votes/list-for-user.html.tmpl
+++ b/template/en/default/bug/votes/list-for-user.html.tmpl
@@ -21,9 +21,11 @@
[% PROCESS global/header.html.tmpl
title = "Show Votes"
- h2 = user.name
+ h2 = voting_user.name
%]
+[% canedit = 1 IF voting_user.login == user.login %]
+
[% IF votes_recorded %]
<p>
<font color="red">
@@ -76,7 +78,7 @@
</a>
</td>
<td align="right">
- [% IF user.canedit %]
+ [% IF canedit %]
[% IF product.onevoteonly %]
<input type="checkbox" name="[% bug.id %]" value="1"
[% " checked" IF bug.count %]>
@@ -103,7 +105,7 @@
[% END %]
</table>
- [% IF user.canedit %]
+ [% IF canedit %]
<input type="submit" value="Change My Votes">
<br>
<br>
@@ -114,7 +116,7 @@
</form>
[% ELSE %]
<p>
- [% IF user.canedit %]
+ [% IF canedit %]
You are
[% ELSE %]
This user is