Bug 141036 - add INTERFACE comments to all templates. This does the first 20 or so - many more to go... Patch by gerv; 2xr=bbaetz.

This commit is contained in:
gerv%gerv.net 2002-05-06 19:17:24 +00:00
Родитель 15cd60f1da
Коммит a0135eb3f0
26 изменённых файлов: 153 добавлений и 6 удалений

Просмотреть файл

@ -19,6 +19,10 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
# login: string. The user's Bugzilla login email address.
#%]
[% PROCESS global/header.html.tmpl
title = "Account Created"
%]

Просмотреть файл

@ -18,6 +18,11 @@
#
# Contributor(s): John Vandenberg <zeroj@null.net>
#%]
[%# INTERFACE:
# emailaddress: string. The user's old Bugzilla login email address.
# newemailaddress: string. The user's new Bugzilla login email address.
# token: string. The token associated with this change.
#%]
[% expiration_ts = token_ts + (max_token_age * 86400) %]
From: bugzilla-admin-daemon
To: [% emailaddress %]

Просмотреть файл

@ -19,9 +19,12 @@
# Contributor(s): John Vandenberg <zeroj@null.net>
#%]
[%# INTERFACE:
# token: string. The token to be used in this address change.
#%]
[% PROCESS global/header.html.tmpl %]
<p>
To change your email address, please enter the old email address:
</p>

Просмотреть файл

@ -19,6 +19,10 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
# login: string. The user's Bugzilla login email address.
#%]
[% PROCESS global/header.html.tmpl
title = "Account Exists"
%]

Просмотреть файл

@ -19,6 +19,14 @@
# Contributor(s): Myk Melez <myk@mozilla.org>
#%]
[%# INTERFACE:
# name: string. The name of the attachment status we are editing.
# desc: string. Its description.
# sortkey: integer. Where it's sorted in the list.
# product: string. Which product it applies to.
# id: integer. Its internal ID number.
#%]
[% PROCESS global/header.html.tmpl
title = "Edit Attachment Status"
style = "

Просмотреть файл

@ -19,6 +19,16 @@
# Contributor(s): Myk Melez <myk@mozilla.org>
#%]
[%# INTERFACE:
# statusdefs: list of hashes. may be empty. Each hash has six members:
# name: string. The name of the attachment status.
# description: string. Its description.
# sortkey: integer. Sorting priority.
# product: string. The product to which the attachment status applies.
# id: integer. Its internal ID number.
# attachcount: integer. How many attachments have that status.
#%]
[% PROCESS global/header.html.tmpl
title = 'Administer Attachment Statuses'
message = message

Просмотреть файл

@ -19,6 +19,16 @@
# Contributor(s): Myk Melez <myk@mozilla.org>
#%]
[%# INTERFACE:
# bugid: integer. ID of the bug we just attached an attachment to.
# attachid: integer. ID of the attachment just created.
# description: string. Description of the attachment just created.
# contenttype: string. The Content Type we attached it as.
# contenttypemethod: string. How we got the content type of the attachment.
# Possible values: autodetect, list, manual.
# mailresults: string. who was mailed, and who wasn't.
#%]
[% PROCESS global/header.html.tmpl
title = "Changes Submitted"
style = "th { text-align: left; }"

Просмотреть файл

@ -20,6 +20,12 @@
# Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
# bugid: integer. ID of the bug we are updating.
# attachid: integer. ID of the attachment we just attached.
# mailresults: string. Who was mailed and who wasn't.
#%]
[% PROCESS global/header.html.tmpl
title = "Changes Submitted"
style = "th { text-align: left; }"

Просмотреть файл

@ -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"
%]

Просмотреть файл

@ -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 %]

Просмотреть файл

@ -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?"
%]

Просмотреть файл

@ -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>"

Просмотреть файл

@ -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

Просмотреть файл

@ -19,6 +19,11 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
# proddesc: hash. May be empty. The hash keys are the products, and the values
# are their descriptions.
#%]
[% DEFAULT title = "Choose a Product" %]
[% PROCESS global/header.html.tmpl %]

Просмотреть файл

@ -19,6 +19,13 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
# header_done: boolean. True if the header has already been printed.
# error: string. The error message to be printed. May contain HTML.
# variables: hash. Useful data about the problem. The keys are the variable
# names, and the values the variable values.
#%]
[% UNLESS header_done %]
[% PROCESS global/header.html.tmpl %]
[% END %]

Просмотреть файл

@ -19,6 +19,17 @@
# Contributor(s):
#%]
[%# INTERFACE:
# (All the below interface elements are optional.)
# title: string. Page title.
# h1: string. Main page header.
# h2: string. Page subheader.
# extra: string. Any other HTML to go inside the <head> tags.
# jscript: string. Javascript to go in the header.
# style: string. CSS style.
# message: string. A message to display to the user. May contain HTML.
#%]
[% DEFAULT
title = ""
h1 = title

Просмотреть файл

@ -19,6 +19,11 @@
# Contributor(s):
#%]
[%# INTERFACE:
# url: string. An optional URL to go to.
# link: string. The link text for that URL.
#%]
[% DEFAULT title = "Bugzilla Message" %]
[% PROCESS global/header.html.tmpl %]

Просмотреть файл

@ -19,6 +19,11 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
# header_done: boolean. True if the header has already been printed.
# error: string. The error message to be displayed. May contain HTML.
#%]
[% UNLESS header_done %]
[% PROCESS global/header.html.tmpl %]
[% END %]

Просмотреть файл

@ -21,6 +21,10 @@
# Jacob Steenhagen <jake@acutex.net>
#%]
[%# INTERFACE:
# username: string. The login name of the user, if any.
#%]
[% PROCESS global/header.html.tmpl
title = 'Bugzilla Main Page'
%]

Просмотреть файл

@ -280,7 +280,7 @@
Reassign</A> bugs to
</label>
<input name="assigned_to"
value="[% user FILTER html %]"
value="[% user.login FILTER html %]"
onchange="document.forms.changeform.knob[[% knum %]].checked = true;"
size="32"><br />

Просмотреть файл

@ -19,6 +19,10 @@
# Contributor(s): Myk Melez <myk@mozilla.org>
#%]
[%# INTERFACE:
# title: string. The title for this page. (optional)
#%]
[%############################################################################%]
[%# Initialization #%]
[%############################################################################%]

Просмотреть файл

@ -19,6 +19,13 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
# added_quip: string. Defined if the CGI added a quip data before
# displaying anything; if defined, its value is that quip.
# show_quips: boolean. True if we are showing the entire quip list.
# quips: list of strings. Defined iff show_quips is true. List of all quips.
#%]
[% PROCESS global/header.html.tmpl
title = "Bugzilla Quip System"
h1 = "Add your own clever headline"

Просмотреть файл

@ -19,6 +19,11 @@
# Contributor(s): Myk Melez <myk@mozilla.org>
#%]
[%# INTERFACE:
# debug: boolean. True if we want the query displayed while we wait.
# query: string. The SQL query which makes the buglist.
#%]
<html>
<head>
<title>Bugzilla is pondering your query</title>

Просмотреть файл

@ -19,6 +19,15 @@
# Contributor(s): Bradley Baetz <bbaetz@student.usyd.edu.au>
#%]
[%# INTERFACE:
# product: string. The product this is the components list for.
# components: List of hashes. May be empty. Each hash has four members:
# name: string. Name of the component.
# description: string. Description of the component. May contain HTML.
# initialowner: string. Component's initial owner.
# initialqacontact: string. Component's initial QA contact.
#%]
[% filtered_product = product FILTER html %]
[% PROCESS global/header.html.tmpl
title = "Components for $product"

Просмотреть файл

@ -19,6 +19,12 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
# This template has no interface. However, to use it, you need to fulfill
# the interfaces of search/form.html.tmpl, search/knob.html.tmpl and
# search/boolean-charts.html.tmpl.
#%]
[% PROCESS global/header.html.tmpl
title = "Search for bugs"
extra = " onLoad=\"selectProduct(document.forms['queryform']);\""

Просмотреть файл

@ -19,6 +19,12 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
# This template has no interface. However, to use it, you need to fulfill
# the interfaces of search/form.html.tmpl, search/knob.html.tmpl and
# search/boolean-charts.html.tmpl.
#%]
[% PROCESS global/header.html.tmpl
title = "Search for bugs"
extra = " onLoad=\"selectProduct(document.forms['queryform']);\""