diff options
Diffstat (limited to 'template/en/default/bug')
17 files changed, 1910 insertions, 0 deletions
diff --git a/template/en/default/bug/activity/show.html.tmpl b/template/en/default/bug/activity/show.html.tmpl new file mode 100644 index 000000000..387ba6d6c --- /dev/null +++ b/template/en/default/bug/activity/show.html.tmpl @@ -0,0 +1,43 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[%# INTERFACE: + # bug_id: integer. The bug ID. + # + # This template also needs to be called with the interface to the + # activity.html.tmpl template fulfilled. + #%] + +[% INCLUDE global/header + title = "Changes made to bug $bug_id" + h1 = "Activity log" + h2 = "Bug <a href='show_bug.cgi?id=$bug_id'>$bug_id</a>" + %] + +<br> + +[% INCLUDE show/activity.html.tmpl %] + +<p> + <a href="show_bug.cgi?id=[% bug_id %]">Back to bug [% bug_id %]</a> +</p> + +[% INCLUDE global/footer %] diff --git a/template/en/default/bug/activity/table.html.tmpl b/template/en/default/bug/activity/table.html.tmpl new file mode 100644 index 000000000..43529bd23 --- /dev/null +++ b/template/en/default/bug/activity/table.html.tmpl @@ -0,0 +1,91 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[%# INTERFACE: + # operations: array of hashes. May be empty. Each has has three members: + # who: string. who performed the operation + # when: string. when they performed it + # changes: hash. Details of what they changed. This hash has three + # compulsory and one optional member: + # field: string. The name of the field + # removed: string. What was removed from the field + # added: string. What was added to the field + # attach_id: integer. If the change was adding an attachment, its id. + # incomplete_data: boolean. True if some of the data is incomplete (because + # it was affected by an old Bugzilla bug.) + #%] + +[% IF incomplete_data %] + <p> + There used to be a bug Bugzilla which caused activity data + to be lost if there was a large number of cc's or dependencies. That + has been fixed, however, there was some data already lost on this bug + that could not be regenerated. The changes that the script could not + reliably determine are prefixed by '?'. + </p> +[% END %] + +[% IF operations.size > 0 %] + <table border cellpadding="4"> + <tr> + <th>Who</th> + <th>When</th> + <th>What</th> + <th>Removed</th> + <th>Added</th> + </tr> + + [% FOREACH operation = operations %] + <tr> + <td rowspan="[% operation.changes.size %]" valign="top"> + [% operation.who %] + </td> + <td rowspan="[% operation.changes.size %]" valign="top"> + [% operation.when %] + </td> + [% FOREACH change = operation.changes %] + [% "</tr><tr>" IF loop.index > 0 %] + <td> + [% IF change.attachid %] + <a href="attachment.cgi?id=[% change.attachid %]&action=view"> + Attachment #[% change.attachid %]</a> + [% END %] + [% change.field %] + </td> + <td> + [% IF change.removed %] + [% change.removed FILTER html %] + [% ELSE %] + + [% END %] + </td> + <td> + [% IF change.added %] + [% change.added FILTER html %] + [% ELSE %] + + [% END %] + </td> + [% END %] + </tr> + [% END %] + </table> +[% END %] diff --git a/template/en/default/bug/choose-xml.html.tmpl b/template/en/default/bug/choose-xml.html.tmpl new file mode 100644 index 000000000..4456534f5 --- /dev/null +++ b/template/en/default/bug/choose-xml.html.tmpl @@ -0,0 +1,47 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[% INCLUDE global/header + title = "Display bugs as XML" + %] + +<form method="get" action="xml.cgi"> + <table> + <tr> + <td> + Display bugs as XML by entering a list of bug numbers here: + </td> + <td> + <input name="id" size="30" /> + <input type="submit" value="Display as XML" /> + </td> + </tr> + + <tr> + <td> </td> + <td> + (e.g. 1000, 2467, 852) + </td> + </tr> + </table> +</form> + +[% INCLUDE global/footer %] diff --git a/template/en/default/bug/choose.html.tmpl b/template/en/default/bug/choose.html.tmpl new file mode 100644 index 000000000..b776ff255 --- /dev/null +++ b/template/en/default/bug/choose.html.tmpl @@ -0,0 +1,36 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[% UNLESS header_done %] + [% INCLUDE global/header + title = "Search by bug number" + %] +[% END %] + +<form method="get" action="show_bug.cgi"> + <p> + You may find a single bug by entering its bug id here: + <input name="id" size="6"> + <input type="submit" value="Show Me This Bug"> + </p> +</form> + +[% INCLUDE global/footer %] diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl new file mode 100644 index 000000000..27177486e --- /dev/null +++ b/template/en/default/bug/comments.html.tmpl @@ -0,0 +1,54 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[% DEFAULT start_at = 0 %] +[% count = 0 %] +[% FOREACH comment = comments %] + [% IF count >= start_at %] + [% PROCESS a_comment %] + [% END %] + + [% count = count + 1 %] +[% END %] + + +[%############################################################################%] +[%# Block for individual comments #%] +[%############################################################################%] + +[% BLOCK a_comment %] + [% IF count > 0 %] + <br> + <i>------- Additional Comment + <a name="c[% count %]" href="#c[% count %]">#[% count %]</a> From + <a href="mailto:[% comment.email FILTER html %]">[% comment.name FILTER html %]</a> + [%+ comment.time %] ------- + </i> + [% END %] + + <br> +[%# Don't indent the <pre> block, since then the spaces are displayed in the + # generated HTML + #%] +<pre> + [%- quoteUrls(comment.body) -%] +</pre> +[% END %] diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl new file mode 100644 index 000000000..cb82c8401 --- /dev/null +++ b/template/en/default/bug/create/create.html.tmpl @@ -0,0 +1,257 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + # Ville Skyttä <ville.skytta@iki.fi> + #%] + +[% INCLUDE global/header + title = "Enter Bug" + h2 = "This page lets you enter a new bug into Bugzilla." +%] + +<form method="post" action="post_bug.cgi"> +<input type="hidden" name="product" value="[% product FILTER html %]" /> + +<table cellspacing="2" cellpadding="0" border="0"> + + <tr> + <td><br></td> + </tr> + + <tr> + <td></td> + <td colspan="3"> + Before filling this in, please read the + <a href="bugwritinghelp.html">bug-writing guidelines</a>. + </td> + </tr> + + <tr> + <td><br></td> + </tr> + + <tr> + <td align="right" valign="top"><strong>Reporter:</strong></td> + <td valign="top">[% reporter FILTER html %]</td> + + <td align="right" valign="top"><strong>Product:</strong></td> + <td valign="top">[% product FILTER html %]</td> + </tr> + + [%# We can't use the select block in these two cases for various reasons. %] + <tr> + <td align="right" valign="top"> + <strong>Version:</strong> + </td> + <td> + <select name="version" size="5"> + [%- FOREACH v = version %] + <option value="[% v FILTER html %]" + [% " selected=\"selected\"" IF v == default.version %]>[% v FILTER html -%] + </option> + [%- END %] + </select> + </td> + + <td align="right" valign="top"> + <strong> + <a href="describecomponents.cgi?product=[% product FILTER uri %]"> + Component:</a> + </strong> + </td> + <td> + <select name="component" size="5"> + [%- FOREACH c = component_ %] + <option value="[% c FILTER html %]" + [% " selected=\"selected\"" IF c == default.component_ %]>[% c FILTER html -%] + </option> + [%- END %] + </select> + </td> + </tr> + + <tr> + <td> </td> + <td colspan="3"></td> + </tr> + + <tr> + [% sel = { description => 'Platform', name => 'rep_platform' } %] + [% INCLUDE select %] + + [% sel = { description => 'OS', name => 'op_sys' } %] + [% INCLUDE select %] + </tr> + + <tr> + [% IF Param('letsubmitterchoosepriority') %] + [% sel = { description => 'Priority', name => 'priority' } %] + [% INCLUDE select %] + [% ELSE %] + <input type="hidden" name="priority" value="[% default.priority %]" /> + [% END %] + + [% sel = { description => 'Severity', name => 'bug_severity' } %] + [% INCLUDE select %] + </tr> + + <tr> + <td> </td> + <td colspan="3"></td> + </tr> + +[% IF bug_status.size > 1 %] + <tr> + [% sel = { description => 'Initial State', name => 'bug_status' } %] + [% INCLUDE select %] + + <td colspan="2"></td> + </tr> +[% ELSE %] + <input type="hidden" name="bug_status" value="[% default.bug_status %]" /> +[% END %] + + <tr> + <td align="right"> + <strong> + <a href="bug_status.html#assigned_to">Assigned To:</a> + </strong> + </td> + <td colspan="3"> + <input name="assigned_to" size="32" + value="[% assigned_to FILTER html %]" /> + (Leave blank to assign to default component owner) + </td> + </tr> + + <tr> + <td align="right"><strong>Cc:</strong></td> + <td colspan="3"> + <input name="cc" size="45" value="[% cc FILTER html %]" /> + </td> + </tr> + + <tr> + <td> </td> + <td colspan="3"></td> + </tr> + + <tr> + <td align="right"<strong>URL:</strong></td> + <td colspan="3"> + <input name="bug_file_loc" size="60" + value="[% bug_file_loc FILTER html %]" /> + </td> + </tr> + + <tr> + <td align="right"><strong>Summary:</strong></td> + <td colspan="3"> + <input name="short_desc" size="60" value="[% short_desc FILTER html %]" /> + </td> + </tr> + + <tr><td align="right" valign="top"><strong>Description:</strong></td> + <td colspan="3"> + <textarea wrap="hard" name="comment" rows="10" cols="80"> + [% comment FILTER html %]</textarea> + <br> + </td> + </tr> + + <tr> + <td></td> + <td colspan="3"> + [% IF group.size %] + <br> + <strong> + Only users in the selected groups can view this bug: + </strong> + <br> + <font size="-1"> + (Leave all boxes unchecked to make this a public bug.) + </font> + <br> + <br> + + <!-- Checkboxes --> + [% FOREACH g = group %] + + <input type="checkbox" name="bit-[% g.bit %]" value="1" + [% " checked=\"checked\"" IF g.checked %] />[% g.description %]<br /> + [% END %] + <br> + [% END %] + </td> + </tr> + + <tr> + <td></td> + <td colspan="3"> + <input type="submit" value=" Commit " + onclick="if (this.form.short_desc.value == '') + { alert('Please enter a summary sentence for this bug.'); + return false; } return true;"> + + <input type="submit" name="maketemplate" + value="Remember values as bookmarkable template" /> + </td> + </tr> + +[% IF Param('usebrowserinfo') %] + <tr> + <td></td> + <td colspan="3"> + <br> + We've made a guess at your operating system and platform. + Please check them and, if we got it wrong, email + [% Param('maintainer') %]. + </td> + </tr> +[% END %] + + </table> + <input type="hidden" name="form_name" value="enter_bug"> +</form> + +[% INCLUDE global/footer %] + +[%############################################################################%] +[%# Block for SELECT fields #%] +[%############################################################################%] + +[% BLOCK select %] + [% IF sel.description %] + <td align="right"> + <strong> + <a href="bug_status.html#[% sel.name %]">[% sel.description %]:</a> + </strong> + </td> + [% END %] + + <td> + <select name="[% sel.name %]"> + [%- FOREACH x = ${sel.name} %] + <option value="[% x FILTER html %]" + [% " selected=\"selected\"" IF x == default.${sel.name} %]>[% x FILTER html -%] + </option> + [%- END %] + </select> + </td> +[% END %] diff --git a/template/en/default/bug/create/created.html.tmpl b/template/en/default/bug/create/created.html.tmpl new file mode 100644 index 000000000..9eba2edf5 --- /dev/null +++ b/template/en/default/bug/create/created.html.tmpl @@ -0,0 +1,47 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[% INCLUDE global/header + title = "Bug $bug_id Submitted" +%] + +<table border="1"> + <tr> + <td> + <h2>Bug [% bug_id %] has been added to the database.</h2> + + [% mailresults %] + + </td> + <td> + <a href="show_bug.cgi?id=[% bug_id %]">Back To Bug# [% bug_id %]</a> + </td> + </tr> +</table> + +<p> +<a href="attachment.cgi?bugid=[% bug_id %]&action=enter"> + Attach a file to this bug</a>. +</p> + +[% INCLUDE show/navigate.html.tmpl %] + +[% INCLUDE global/footer %] diff --git a/template/en/default/bug/create/initial-comment.txt.tmpl b/template/en/default/bug/create/initial-comment.txt.tmpl new file mode 100644 index 000000000..21a9f3ff8 --- /dev/null +++ b/template/en/default/bug/create/initial-comment.txt.tmpl @@ -0,0 +1,21 @@ +[%# 1.0@bugzilla.org %] +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] +[% form.comment %] diff --git a/template/en/default/bug/create/make-template.html.tmpl b/template/en/default/bug/create/make-template.html.tmpl new file mode 100644 index 000000000..c5e017529 --- /dev/null +++ b/template/en/default/bug/create/make-template.html.tmpl @@ -0,0 +1,33 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[% INCLUDE global/header + title = "Bookmarks are your friend" + h1 = "Template constructed" +%] + +<p> +If you bookmark <a href="enter_bug.cgi?[% url %]">this link</a>, +going to the bookmark will bring up the enter bug page with the fields +initialized as you've requested. +</p> + +[% INCLUDE global/footer %] diff --git a/template/en/default/bug/dependency-graph.html.tmpl b/template/en/default/bug/dependency-graph.html.tmpl new file mode 100644 index 000000000..fff5f1b4d --- /dev/null +++ b/template/en/default/bug/dependency-graph.html.tmpl @@ -0,0 +1,98 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[%# INTERFACE: + # bug_id: integer. The number of the bug(s). + # multiple_bugs: boolean. True if bug_id contains > 1 bug number. + # doall: boolean. True if we are displaying every bug in the database. + # showsummary: boolean. True if we are showing bug summaries. + # rankdir: string. "TB" if we are ranking top-to-bottom, + "LR" if left-to-right. + # image_url: string. The URL of the graphic showing the dependencies. + # map_url: string. The URL of the map file for the image. + #%] + +[% title = "Dependency Graph" + h1 = title + %] + +[% IF NOT multiple_bugs %] + [% title = "$title for bug $bug_id" + h1 = "$h1 for bug <a href='show_bug.cgi?id=$bug_id'>$bug_id</a>" + %] +[% END %] + +[% INCLUDE global/header %] + +<p> + Green circles represent open bugs. +</p> + +<a href="[% map_url %]"> + <img src="[% image_url %]" ismap> +</a> + +<hr> + +<form> + <table> + <tr> + <td> + Bug numbers: + <input name="id" value="[% bug_id %]"> + </td> + </tr> + + <tr> + <td> + <input type="checkbox" name="doall" + [% " checked" IF doall %]> + Show <b>every</b> bug in the system with dependencies + </td> + </tr> + + <tr> + <td colspan="3"> + <input type="checkbox" name="showsummary" + [% " checked" IF showsummary %]> + Show the summaries of all displayed bugs + </td> + </tr> + + <tr> + <td colspan="3"> + <select name="rankdir"> + <option value="TB" + [% " selected" IF rankdir == "TB" %]> + Orient top-to-bottom + </option> + <option value="LR" + [% " selected" IF rankdir == "LR" %]> + Orient left-to-right + </option> + </select> + </td> + </tr> + </table> + <input type="submit" value="Change Parameters"> +</form> + +[% INCLUDE global/footer %] diff --git a/template/en/default/bug/dependency-tree.html.tmpl b/template/en/default/bug/dependency-tree.html.tmpl new file mode 100644 index 000000000..ba0b8213f --- /dev/null +++ b/template/en/default/bug/dependency-tree.html.tmpl @@ -0,0 +1,208 @@ +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Tobias Burnus <burnus@net-b.de> + # Ville Skyttä <ville.skytta@iki.fi> + # Myk Melez <myk@mozilla.org> + #%] + +[% PROCESS global/header + title = "Dependency tree for Bug $bugid" + h1 = "Dependency tree for bug <a href=\"show_bug.cgi?id=$bugid\">$bugid</a>" + style = "strike { background-color: #d9d9d9; color: #000000; }" +%] + +[% PROCESS depthControlToolbar %] + +[%# Display the tree of bugs that this bug depends on. %] +<h3>Bugs that bug <a href="show_bug.cgi?id=[% bugid %]">[% bugid %]</a> depends on +[% IF dependson_ids.size > 0 %] + (<a href="buglist.cgi?bug_id=[% dependson_ids.join(",") %]">view as bug list</a> + [% IF canedit && dependson_ids.size > 1 %] + | <a href="buglist.cgi?bug_id=[% dependson_ids.join(",") %]&tweak=1">change several</a> + [% END %]) + [% IF maxdepth || hide_resolved %] + <small><b> + (Only [% "open" IF hide_resolved %] bugs + [% " whose depth is less than $maxdepth" IF maxdepth %] + will be shown) + </b></small> + [% END %] + </h3> + [% INCLUDE display_tree tree=dependson_tree bug_id=bugid %] +[% ELSE %] + </h3> + <p>None</p> +[% END %] + +[%# Display the tree of bugs that this bug blocks. %] +<h3>Bugs that bug <a href="show_bug.cgi?id=[% bugid %]">[% bugid %]</a> blocks +[% IF blocked_ids.size > 0 %] + (<a href="buglist.cgi?branch_id=[% blocked_ids.join(",") %]">view as bug list</a> + [% IF canedit && blocked_ids.size > 1 %] + | <a href="buglist.cgi?branch_id=[% blocked_ids.join(",") %]&tweak=1">change several</a> + [% END %]) + [% IF maxdepth || hide_resolved %] + <small><b> + (Only [% "open" IF hide_resolved %] bugs + [% " whose depth is less than $maxdepth" IF maxdepth %] + will be shown) + </b></small> + [% END %] + </h3> + [% INCLUDE display_tree tree=blocked_tree bug_id=bugid %] +[% ELSE %] + </h3> + <p>None</p> +[% END %] + +[% PROCESS depthControlToolbar %] + +[% PROCESS global/footer %] + + +[%###########################################################################%] +[%# Block to display a tree #%] +[%###########################################################################%] + +[% BLOCK display_tree %] +<ul> + [% FOREACH dep_id = tree.$bug_id.dependencies %] + [% dep = tree.$dep_id %] + <li> + [% "<strike>" IF !dep.open %] + <a href="show_bug.cgi?id=[% dep_id %]">[% dep_id %] + [[% dep.milestone FILTER html %], + [% dep.assignee_email FILTER html %]] - + [% IF dep.seen %] + <i><This bug appears elsewhere in this tree></i></a> + [% ELSE %] + [% dep.summary FILTER html %].</a> + [% END %] + [% "</strike>" IF !dep.open %] + [% INCLUDE display_tree bug_id=dep_id + IF dep.dependencies.size > 0 && !dep.seen %] + </li> + [% dep.seen = 1 %] + [% END %] +</ul> +[% END %] + +[%###########################################################################%] +[%# Block for depth control toolbar #%] +[%###########################################################################%] + +[% BLOCK depthControlToolbar %] + <table cellpadding="3" border="0" cellspacing="0" bgcolor="#d0d0d0"> + <tr> + [%# Hide/show resolved button + Swaps text depending on the state of hide_resolved %] + <td align="center"> + <form method="get" action="showdependencytree.cgi" + style="display: inline; margin: 0px;"> + <input name="id" type="hidden" value="[% bugid %]"> + [% IF maxdepth %] + <input name="maxdepth" type="hidden" value="$maxdepth"> + [% END %] + <input type="hidden" name="hide_resolved" value="[% hide_resolved ? 0 : 1 %]"> + <input type="submit" value="[% hide_resolved ? "Show" : "Hide" %] Resolved"> + </form> + </td> + + <td> + Max Depth: + </td> + + <td> + + </td> + + <td> + <form method="get" action="showdependencytree.cgi" + style="display: inline; margin: 0px;"> + [%# set to one form %] + <input type="submit" value=" 1 " [% + realdepth < 2 || maxdepth == 1 ? "disabled" : "" + %]> + <input name="id" type="hidden" value="[% bugid %]"> + <input name="maxdepth" type="hidden" value="1"> + <input name="hide_resolved" type="hidden" value="[% hide_resolved %]"> + </form> + </td> + + <td> + <form method="get" action="showdependencytree.cgi" + style="display: inline; margin: 0px;"> + [%# Minus one form + Allow subtracting only when realdepth and maxdepth > 1 %] + <input name="id" type="hidden" value="[% bugid %]"> + <input name="maxdepth" type="hidden" value="[% + maxdepth == 1 ? 1 + : ( maxdepth ? maxdepth - 1 : realdepth - 1 ) + %]"> + <input name="hide_resolved" type="hidden" value="[% hide_resolved %]"> + <input type="submit" value=" < " [% + realdepth < 2 || ( maxdepth && maxdepth < 2 ) ? "disabled" : "" + %]> + </form> + </td> + + <td> + <form method="get" action="showdependencytree.cgi" + style="display: inline; margin: 0px;"> + [%# Limit entry form: the button can not do anything when total depth + is less than two, so disable it %] + <input name="maxdepth" size="4" maxlength="4" value="[% + maxdepth > 0 ? maxdepth : "" + %]"> + <input name="id" type="hidden" value="[% bugid %]"> + <input name="hide_resolved" type="hidden" value="[% hide_resolved %]"> + <noscript> + <input type="submit" value="Change" [% realdepth < 2 ? "disabled" : "" %]> + </noscript> + </form> + </td> + + <td> + <form method="get" action="showdependencytree.cgi" + style="display: inline; margin: 0px;"> + [%# plus one form + Disable button if total depth < 2, or if depth set to unlimited %] + <input name="id" type="hidden" value="[% bugid %]"> + [% IF maxdepth %] + <input name="maxdepth" type="hidden" value="[% maxdepth + 1 %]"> + [% END %] + <input name="hide_resolved" type="hidden" value="[% hide_resolved %]"> + <input type="submit" value=" > " [% + realdepth < 2 || ! maxdepth || maxdepth >= realdepth ? + "disabled" : "" + %]> + </form> + </td> + + <td> + <form method="get" action="showdependencytree.cgi" + style="display: inline; margin: 0px;"> + [%# Unlimited button %] + <input name="id" type="hidden" value="[% bugid %]"> + <input name="hide_resolved" type="hidden" value="[% hide_resolved %]"> + <input type="submit" value=" Unlimited "> + </form> + </td> + </tr> +</table> +[% END %] diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl new file mode 100644 index 000000000..9b77c23a2 --- /dev/null +++ b/template/en/default/bug/edit.html.tmpl @@ -0,0 +1,540 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[% filtered_desc = bug.short_desc FILTER html %] +[% UNLESS header_done %] + [% INCLUDE global/header + title = "Bug $bug.bug_id - $bug.short_desc" + h1 = "Bugzilla Bug $bug.bug_id" + h2 = filtered_desc + extra = navigation_links() + %] +[% END %] + +[% PROCESS show/navigate.html.tmpl %] + +<hr> + +<form name="changeform" method="post" action="process_bug.cgi"> + + <input type="hidden" name="delta_ts" value="[% bug.delta_ts %]"> + <input type="hidden" name="longdesclength" value="[% bug.longdesclength %]"> + <input type="hidden" name="id" value="[% bug.bug_id %]"> + +[%# *** Platform Reporter Product OS AddCC *** %] + + <table cellspacing="1" cellpadding="1" border="0"> + <tr> + <td align="right"> + <b>Bug#:</b> + </td> + <td> + <a href="[% Param('urlbase') %]show_bug.cgi?id=[% bug.bug_id %]"> + [% bug.bug_id %]</a> + </td> + + <td> </td> + + <td align="right"> + <b>Platform:</b> + </td> + [% PROCESS select selname = "rep_platform" %] + + <td align="right"> + <b>Reporter:</b> + </td> + <td> + [% bug.reporter FILTER html %] + </td> + </tr> + + <tr> + <td align="right"> + <b>Product:</b> + </td> + [% PROCESS select selname => "product" %] + + <td align="right"> + <b>OS:</b> + </td> + [% PROCESS select selname => "op_sys" %] + + <td align="right"> + <b>Add CC:</b> + </td> + <td> + <input name="newcc" size="30" value=""> + </td> + </tr> + +[%# *** Component Version CC Priority Severity AssignedTo Milestone *** %] + + <tr> + <td align="right"> + <b> + <a href="describecomponents.cgi?product=[% bug.product FILTER uri %]"> + Component</a>: + </b> + </td> + <td> + <select name="component"> + [% FOREACH x = component_ %] + <option value="[% x FILTER html %]" + [% " selected" IF x == bug.component %]>[% x FILTER html %] + </option> + [% END %] + </select> + </td> + + <td> </td> + + <td align="right"> + <b>Version:</b> + </td> + [% PROCESS select selname => "version" %] + + <td rowspan="4" align="right" valign="top"> + <b>CC:</b> + </td> + <td rowspan="4" valign="top"> + [% IF bug.cc %] + <select name="cc" multiple size="5"> + [% FOREACH c = bug.cc %] + <option value="[% c FILTER html %]">[% c FILTER html %]</option> + [% END %] + </select> + <br> + <input type="checkbox" name="removecc">Remove selected CCs + <br> + [% ELSE %] + <input type="hidden" name="cc" value=""> + [% END %] + </td> + </tr> + + <tr> + <td align="right"> + <b> + <a href="bug_status.html">Status</a>: + </b> + </td> + <td>[% bug.bug_status FILTER html %]</td> + <td> </td> + + <td align="right"> + <b><a href="bug_status.html#priority">Priority</a>:</b> + </td> + [% PROCESS select selname => "priority" %] + </tr> + + <tr> + <td align="right"> + <b> + <a href="bug_status.html">Resolution</a>: + </b> + </td> + <td>[% bug.resolution FILTER html %]</td> + <td> </td> + + <td align="right"> + <b><a href="bug_status.html#severity">Severity</a>:</b> + </td> + [% PROCESS select selname = "bug_severity" %] + + </tr> + + <tr> + <td align="right"> + <b> + <a href="bug_status.html#assigned_to">Assigned To</a>: + </b> + </td> + <td>[% bug.assigned_to FILTER html %]</td> + <td> </td> + + [% IF Param("usetargetmilestone") && bug.target_milestone %] + <td align="right"> + <b> + <a href="[% bug.milestoneurl FILTER uri %]">Target Milestone</a>: + </b> + </td> + [% PROCESS select selname = "target_milestone" %] + [% ELSE %] + <td colspan="3"> </td> + [% END %] + </tr> + +[%# *** QAContact URL Summary Whiteboard Keywords *** %] + + [% IF Param('useqacontact') %] + <tr> + <td align="right"> + <b>QA Contact:</b> + </td> + <td colspan="7"> + <input name="qa_contact" + value="[% bug.qa_contact FILTER html %]" size="60"> + </td> + </tr> + [% END %] + + <tr> + <td align="right"> + <b> + [% IF bug.bug_file_loc %] + <a href="[% bug.bug_file_loc FILTER uri %]">URL:</a> + [% ELSE %] + URL: + [% END %] + </b> + </td> + <td colspan="7"> + <input name="bug_file_loc" + value="[% bug.bug_file_loc FILTER html %]" size="60"> + </td> + </tr> + + <tr> + <td align="right"> + <b>Summary:</b> + </td> + <td colspan="7"> + <input name="short_desc" + value="[% bug.short_desc FILTER html %]" size="60"> + </td> + </tr> + + [% IF Param('usestatuswhiteboard') %] + <tr> + <td align="right"> + <b>Status Whiteboard:</b> + </td> + <td colspan="7"> + <input name="status_whiteboard" + value="[% bug.status_whiteboard FILTER html %]" size="60"> + </td> + </tr> + [% END %] + + [% IF use_keywords %] + <tr> + <td align="right"> + <b> + <a href="describekeywords.cgi">Keywords:</a> + </b> + <td colspan="7"> + <input name="keywords" + value="[% bug.keywords.join(', ') FILTER html %]" size="60"> + </td> + </tr> + [% END %] + </table> + +[%# *** Attachments *** %] + + [% INCLUDE attachment/list.atml + attachments = bug.attachments + bugid = bug.bug_id %] + +[%# *** Dependencies Votes *** %] + + [% IF Param('usedependencies') %] + <table> + <tr> + [% PROCESS dependencies + dep = { title => "depends on", fieldname => "dependson" } %] + <td rowspan="2"> + <a href="showdependencytree.cgi?id=[% bug.bug_id %]">Show + dependency tree</a> + + [% IF Param('webdotbase') %] + <br> + <a href="showdependencygraph.cgi?id=[% bug.bug_id %]">Show + dependency graph</a> + [% END %] + </td> + </tr> + + <tr> + [% PROCESS dependencies + dep = { title => "blocks", fieldname => "blocked" } %] + </tr> + </table> + [% END %] + + [% IF use_votes %] + <table> + <tr> + <th> + <a href="votehelp.html">Votes:</a> + </th> + <td> + [% bug.votes %] + <a href="votes.cgi?action=show_bug&bug_id=[% bug.bug_id %]">Show + votes for this bug</a> + <a href="votes.cgi?action=show_user&bug_id=[% bug.bug_id %]">Vote + for this bug</a> + </td> + </tr> + </table> + [% END %] + +[%# *** Comments Groups *** %] + + <br> + <b>Additional Comments:</b> + <br> + <textarea wrap="hard" name="comment" rows="10" cols="80" + accesskey="c"></textarea> + <br> + + [% IF groups.size > 0 %] + <br> + <b>Only users in the selected groups can view this bug:</b> + <br> + <font size="-1">(Unchecking all boxes makes this a public bug.)</font> + <br> + <br> + + [% FOREACH group = groups %] + + <input type="checkbox" name="bit-[% group.bit %]" value="1" + [% " checked='checked'" IF group.ison %] + [% " disabled='disabled'" IF NOT group.ingroup %]> + [% group.description %] + <br> + [% END %] + + [% IF NOT user.inallgroups %] + <b> + Only members of a group can change the visibility of a bug for + that group + </b> + <br> + [% END %] + + [% IF bug.inagroup %] + <p> + <b>But users in the roles selected below can always view this bug:</b> + <br> + <small> + (The assignee + [% IF (Param('useqacontact')) %] + and QA contact + [% END %] + can always see a bug, and this section does not take effect unless + the bug is restricted to at least one group.) + </small> + </p> + + <p> + <input type="checkbox" name="reporter_accessible" value="1" + [% " checked" IF bug.reporter_accessible %]>Reporter + <input type="checkbox" name="cclist_accessible" value="1" + [% " checked" IF bug.cclist_accessible %]>CC List + </p> + [% END %] + [% END %] + +[%# *** Knob *** %] + + <br> + <input type="radio" name="knob" value="none" checked> + Leave as <b>[% bug.bug_status FILTER html %] + [% bug.resolution FILTER html %]</b> + <br> + + [% knum = 1 %] + + [% IF bug.bug_status == "UNCONFIRMED" && + (user.canedit || user.canconfirm) %] + <input type="radio" name="knob" value="confirm"> + Confirm bug (change status to <b>NEW</b>) + <br> + [% knum = knum + 1 %] + [% END %] + + [% IF user.canedit %] + [% IF bug.isopened %] + [% IF bug.bug_status != "ASSIGNED" %] + <input type="radio" name="knob" value="accept"> + Accept bug ( + [% "confirm bug, " IF bug.isunconfirmed %]change + status to <b>ASSIGNED</b>) + <br> + [% knum = knum + 1 %] + [% END %] + + [% IF bug.resolution %] + <input type="radio" name="knob" value="clearresolution"> + Clear the resolution (remove the current resolution of + <b>[% bug.resolution FILTER html %]</b>)<br> + [% knum = knum + 1 %] + [% END %] + + <input type="radio" name="knob" value="resolve"> + Resolve bug, changing <a href="bug_status.html">resolution</a> to + <select name="resolution" + onchange="document.changeform.knob[[% knum %]].checked=true"> + [% FOREACH r = resolution %] + <option value="[% r FILTER html %]">[% r FILTER html %]</option> + [% END %] + </select> + <br> + [% knum = knum + 1 %] + + <input type="radio" name="knob" value="duplicate"> + Resolve bug, mark it as duplicate of bug # + <input name="dup_id" size="6" + onchange="if (this.value != '') + {document.changeform.knob[[% knum %]].checked=true}"> + <br> + [% knum = knum + 1 %] + + <input type="radio" name="knob" value="reassign"> + <a href="bug_status.html#assigned_to">Reassign</A> bug to + <input name="assigned_to" size="32" + onchange="if ((this.value != '[% bug.assigned_to_email FILTER js %]') && + (this.value != '')) { + document.changeform.knob[[% knum %]].checked=true; + }" + value="[% bug.assigned_to_email FILTER html %]"> + <br> + [% IF bug.isunconfirmed %] + <input type="checkbox" name="andconfirm"> + and confirm bug (change status to <b>NEW</b>) + <br> + [% END %] + [% knum = knum + 1 %] + + <input type="radio" name="knob" value="reassignbycomponent"> + Reassign bug to owner + [% "and QA contact" IF useqacontact %] + of selected component + <br> + [% IF bug.isunconfirmed %] + <input type="checkbox" name="andconfirm"> + and confirm bug (change status to <b>NEW</b>) + <br> + [% END %] + [% knum = knum + 1 %] + [% ELSE %] + [% IF bug.resolution != "MOVED" || + (bug.resolution == "MOVED" && user.canmove) %] + <input type="radio" name="knob" value="reopen"> Reopen bug + <br> + [% knum = knum + 1 %] + [% END %] + [% IF bug.bug_status == "RESOLVED" %] + <input type="radio" name="knob" value="verify"> + Mark bug as <b>VERIFIED</b><br> + [% knum = knum + 1 %] + [% END %] + [% IF bug.bug_status != "CLOSED" %] + <input type="radio" name="knob" value="close"> + Mark bug as <b>CLOSED</b><br> + [% knum = knum + 1 %] + [% END %] + [% END %] + [% END %] + + <input type="submit" value="Commit"> + <input type="hidden" name="form_name" value="process_bug"> + <p> + <font size="+1"> + <b> + <a href="show_activity.cgi?id=[% bug.bug_id %]">View Bug Activity</a> + | + <a href="long_list.cgi?buglist=[% bug.bug_id %]">Format For Printing</a> + </b> + </font> + + [% IF user.canmove %] + <font size="+1"><b> | </b></font> + <input type="submit" name="action" + value="[% Param("move-button-text") %]"> + [% END %] + </p> +</form> + +[%# *** Additional Comments *** %] + +<table> + <tr> + <td align="left"> + <b> + <a name="c0" href="#c0">Description</a>: + </b> + </td> + <td align="right" width="100%"> + Opened: [% bug.creation_ts %] + </td> + </tr> +</table> +<hr> + +[% PROCESS show/comments.tmpl + comments = bug.comments + %] + +<hr> + +[% PROCESS show/navigate.html.tmpl %] + +<br> + +[% INCLUDE global/footer %] + + +[%############################################################################%] +[%# Block for dependencies #%] +[%############################################################################%] + +[% BLOCK dependencies %] + <th align="right">Bug [% bug.bug_id %] [%+ dep.title %]:</th> + <td> + [% FOREACH depbug = bug.${dep.fieldname} %] + [% GetBugLink(depbug, depbug) %][% " " %] + [% END %] + </td> + <td> + <input name="[% dep.fieldname %]" + value="[% bug.${dep.fieldname}.join(', ') %]"> + </td> +[% END %] + + +[%############################################################################%] +[%# Block for SELECT fields #%] +[%############################################################################%] + +[% BLOCK select %] + <td> + <select name="[% selname %]"> + [% FOREACH x = ${selname} %] + <option value="[% x FILTER html %]" + [% " selected" IF x == bug.${selname} %]>[% x FILTER html %] + </option> + [% END %] + </select> + </td> + <td> </td> +[% END %] diff --git a/template/en/default/bug/navigate.html.tmpl b/template/en/default/bug/navigate.html.tmpl new file mode 100644 index 000000000..3713e0a0d --- /dev/null +++ b/template/en/default/bug/navigate.html.tmpl @@ -0,0 +1,54 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[% IF bug_list.size > 0 %] + [% this_bug_idx = lsearch(bug_list, bug.bug_id) %] + <b>Bug List:</b> + [% IF this_bug_idx != -1 %] + ([% this_bug_idx + 1 %] of [% bug_list.size %]) + [% END %] + + <a href="show_bug.cgi?id=[% bug_list.first %]">First</a> + <a href="show_bug.cgi?id=[% bug_list.last %]">Last</a> + + [% IF this_bug_idx != -1 %] + [% IF this_bug_idx > 0 %] + [% prev_bug = this_bug_idx - 1 %] + <a href="show_bug.cgi?id=[% bug_list.$prev_bug %]">Prev</a> + [% ELSE %] + <i><font color="#777777">Prev</font></i> + [% END %] + + [% IF this_bug_idx + 1 < bug_list.size %] + [% next_bug = this_bug_idx + 1 %] + <a href="show_bug.cgi?id=[% bug_list.$next_bug %]">Next</a> + [% ELSE %] + <i><font color="#777777">Next</font></i> + [% END %] + [% ELSE %] + (This bug is not in your list) + [% END %] + + <a href="buglist.cgi?regetlastlist=1">Show list</a> +[% END %] + + <a href="query.cgi">Query page</a> + <a href="enter_bug.cgi">Enter new bug</a> diff --git a/template/en/default/bug/show-multiple.html.tmpl b/template/en/default/bug/show-multiple.html.tmpl new file mode 100644 index 000000000..8313323aa --- /dev/null +++ b/template/en/default/bug/show-multiple.html.tmpl @@ -0,0 +1,156 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Terry Weissman <terry@mozilla.org> + # Gervase Markham <gerv@gerv.net> + #%] + +[% INCLUDE global/header + title = "Full Text Bug Listing" +%] + +[% IF bugs.first %] + [% FOREACH bug = bugs %] + [% PROCESS bug_display %] + [% END %] +[% ELSE %] + <p> + You'd have more luck if you gave me some bug numbers. + </p> +[% END %] + +[% INCLUDE global/footer %] + + +[%###########################################################################%] +[%# Block for an individual bug #%] +[%###########################################################################%] + +[% BLOCK bug_display %] + <img src="1x1.gif" width="1" height="80" align="left"> + <div align="center"> + <b> + <font ="+3">Bug [% bug.bug_id %] - [% bug.short_desc FILTER html %]</font> + </b> + </div> + + <table width="100%"> + <tr> + <td> + <b>Bug#:</b> + <a href="show_bug.cgi?id=[% bug.bug_id %]">[% bug.bug_id %]</a> + </td> + [% PROCESS cell attr = { description => "Product", + name => "product" } %] + [% PROCESS cell attr = { description => "Version", + name => "version" } %] + [% PROCESS cell attr = { description => "Platform", + name => "rep_platform" } %] + </tr> + + <tr> + [% PROCESS cell attr = { description => "OS/Version", + name => "op_sys" } %] + [% PROCESS cell attr = { description => "Status", + name => "bug_status" } %] + [% PROCESS cell attr = { description => "Severity", + name => "bug_severity" } %] + [% PROCESS cell attr = { description => "Priority", + name => "priority" } %] + </tr> + + <tr> + [% PROCESS cell attr = { description => "Resolution", + name => "resolution" } %] + [% PROCESS cell attr = { description => "Assigned To", + name => "assigned_to" } %] + [% PROCESS cell attr = { description => "Reported By", + name => "reporter" } %] + [% IF Param('useqacontact') %] + [% PROCESS cell attr = { description => "QA Contact", + name => "qa_contact" } %] + [% END %] + </tr> + + <tr> + <td colspan="2"> + <b>Component:</b> + [% bug.component %] + </td> + + <td colspan="2"> + [% IF Param('usetargetmilestone') %] + <b>Target Milestone:</b> + [% bug.target_milestone FILTER html %] + [% END %] + </td> + </tr> + + <tr> + <td colspan="4"> + <b>URL:</b> + <A HREF="[% bug.bug_file_loc %]">[% bug.bug_file_loc FILTER html %]</a> + </tr> + + <tr> + <td colspan="4"> + <b>Summary:</b> [% bug.short_desc FILTER html %] + </td> + </tr> + + [% IF use_keywords %] + <tr> + <td colspan="4"> + <b>Keywords: </b> [% bug.keywords FILTER html %] + </td> + </tr> + [% END %] + + [% IF Param("usestatuswhiteboard") %] + <tr> + <td colspan="4"> + <b>Status Whiteboard:</b> + [% bug.status_whiteboard FILTER html %] + </td> + </tr> + [% END %] + + <tr> + <td colspan="4"> + <b>Description:</b> + </td> + </tr> + </table> + + [% PROCESS show/comments.tmpl + comments = bug.comments %] + + <hr> +[% END %] + + +[%###########################################################################%] +[%# Block for standard table cells #%] +[%###########################################################################%] + +[% BLOCK cell %] + <td> + <b>[% attr.description%]:</b> + [% bug.${attr.name} FILTER html %] + </td> +[% END %] diff --git a/template/en/default/bug/votes/delete-all.html.tmpl b/template/en/default/bug/votes/delete-all.html.tmpl new file mode 100644 index 000000000..9a63f75af --- /dev/null +++ b/template/en/default/bug/votes/delete-all.html.tmpl @@ -0,0 +1,46 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[% INCLUDE global/header + title = "Remove your votes?" + %] + +<p> + You are about to remove all of your bug votes. Are you sure you wish to + remove your vote from every bug you've voted on? +</p> + +<form action="votes.cgi" method="post"> + <input type="hidden" name="action" value="vote"> + <p> + <input type="radio" name="delete_all_votes" value="1"> + Yes, delete all my votes + </p> + <p> + <input type="radio" name="delete_all_votes" value="0" checked="checked"> + No, go back and review my votes + </p> + <p> + <input type="submit" value="Submit"> + </p> +</form> + +[% INCLUDE global/footer %] diff --git a/template/en/default/bug/votes/list-for-bug.html.tmpl b/template/en/default/bug/votes/list-for-bug.html.tmpl new file mode 100644 index 000000000..a9bcaf5c8 --- /dev/null +++ b/template/en/default/bug/votes/list-for-bug.html.tmpl @@ -0,0 +1,49 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[% INCLUDE global/header + title = "Show Votes" + h2 = "Bug <a href='show_bug.cgi?id=$bug_id'>$bug_id</a>" + %] + +<table cellspacing="4"> + <tr> + <th>Who</th> + <th>Number of votes</th> + </tr> + + [% FOREACH user = users %] + <tr> + <td> + <a href="votes.cgi?action=show_user&user=[% user.name %]"> + [% user.name %] + </a> + </td> + <td align="right"> + [% user.count %] + </td> + </tr> + [% END %] +</table> + +<p>Total votes: [% total %]</p> + +[% INCLUDE global/footer %] diff --git a/template/en/default/bug/votes/list-for-user.html.tmpl b/template/en/default/bug/votes/list-for-user.html.tmpl new file mode 100644 index 000000000..96d9ad84a --- /dev/null +++ b/template/en/default/bug/votes/list-for-user.html.tmpl @@ -0,0 +1,130 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham <gerv@gerv.net> + #%] + +[% INCLUDE global/header + title = "Show Votes" + h2 = user.name + %] + +[% IF votes_recorded %] + <p> + <font color="red"> + The changes to your votes have been saved. + </font> + </p> +[% ELSE %] + <br> +[% END %] + +[% IF products.size %] + <form action="votes.cgi"> + <input type="hidden" name="action" value="vote"> + <table cellspacing="4"> + <tr> + <td></td> + <th>Bug #</th> + <th>Summary</th> + <th>Votes</th> + </tr> + + [% FOREACH product = products %] + <tr> + <th>[% product.name FILTER html %]</th> + <td></td> + [% IF product.maxperbug < product.maxvotes AND + product.maxperbug > 1 %] + <td> + <font size="-1"> + (Note: only [% product.maxperbug %] vote + [% "s" IF product.maxperbug != 1 %] allowed per bug in + this product.) + </font> + </td> + [% END %] + </tr> + + [% FOREACH bug = product.bugs %] + <tr> + <td></td> + <td> + [% "<strike>" IF NOT bug.opened %] + <a href="show_bug.cgi?id=[% bug.id %]"> + [% bug.id %]</a> + [% "</strike>" IF NOT bug.opened %] + </td> + <td> + <a href="votes.cgi?action=show_bug&bug_id=[% bug.id %]"> + [% bug.summary FILTER html %] + </a> + </td> + <td align="right"> + [% IF user.canedit %] + [% IF product.onevoteonly %] + <input type="checkbox" name="[% bug.id %]" value="1" + [% " checked" IF bug.count %]> + [% ELSE %] + <input name="[% bug.id %]" value="[% bug.count %]" + size="2"> + [% END %] + [% ELSE %] + [% bug.count %] + [% END %] + </td> + </tr> + [% END %] + + <tr> + <td></td> + <td colspan="3">[% product.total %] vote + [% "s" IF product.total != 1 %] used out of [% product.maxvotes %] + allowed. + <br> + <br> + </td> + </tr> + [% END %] + </table> + + [% IF user.canedit %] + <input type="submit" value="Change My Votes"> + <br> + <br> + To change your votes, type in new numbers (using zero to + mean no votes) or change the checkbox, and then click + <b>Change My Votes</b>. + [% END %] + </form> +[% ELSE %] + <p> + [% IF user.canedit %] + You are + [% ELSE %] + This user is + [% END %] + currently not voting on any bugs. + </p> +[% END %] + +<p> + <a href="votehelp.html">Help with voting</a>. +</p> + +[% INCLUDE global/footer %] |