summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-19 03:56:11 +0200
committergerv%gerv.net <>2002-04-19 03:56:11 +0200
commitd033109bdc8729e9ef46fc82ad200c7d2cda5a1a (patch)
treec5f4c8adf0c7da3593567e4a51895c8f9a9b4114 /template/en/default/global
parentb48d8ed62c0cf35960d4a454e084ae7ba8f8a71d (diff)
downloadbugzilla-d033109bdc8729e9ef46fc82ad200c7d2cda5a1a.tar.gz
bugzilla-d033109bdc8729e9ef46fc82ad200c7d2cda5a1a.tar.xz
Bug 135707 - rearrange templates to normalise filenames, and create directory structure which allows for localised versions of the templates. Earlier versions of these templates can be found, cvs removed, scattered around bugzilla/template/default; but there are no substantial changes between their initial checkin there and here.
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/choose-product.html.tmpl42
-rw-r--r--template/en/default/global/code-error.html.tmpl57
-rw-r--r--template/en/default/global/footer.html.tmpl6
-rw-r--r--template/en/default/global/header.html.tmpl64
-rw-r--r--template/en/default/global/hidden-fields.html.tmpl32
-rw-r--r--template/en/default/global/message.html.tmpl17
-rw-r--r--template/en/default/global/user-error.html.tmpl40
7 files changed, 258 insertions, 0 deletions
diff --git a/template/en/default/global/choose-product.html.tmpl b/template/en/default/global/choose-product.html.tmpl
new file mode 100644
index 000000000..31d9ea7ba
--- /dev/null
+++ b/template/en/default/global/choose-product.html.tmpl
@@ -0,0 +1,42 @@
+<!-- 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 title = "Choose a Product" %]
+[% INCLUDE global/header %]
+
+<table>
+
+[% FOREACH p = proddesc.keys.sort %]
+ <tr>
+ <th align="right" valign="top">
+ <a href="[% target %]?product=[% p FILTER uri %]">
+ [% p FILTER html %]</a>:
+ </th>
+
+ [% IF proddesc.$p %]
+ <td valign="top">&nbsp;[% proddesc.$p %]</td>
+ [% END %]
+ </tr>
+[% END %]
+
+</table>
+
+[% INCLUDE global/footer %]
diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl
new file mode 100644
index 000000000..9f1fe2964
--- /dev/null
+++ b/template/en/default/global/code-error.html.tmpl
@@ -0,0 +1,57 @@
+<!-- 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 %]
+[% END %]
+
+<tt>
+ <p>
+ Bugzilla has suffered an internal error. Please save this page and send
+ it to [% Param("maintainer") %] with details of what you were doing at
+ the time this message appeared.
+ </p>
+ <script> <!--
+ document.write("<p>URL: " + document.location + "</p>");
+ // -->
+ </script>
+</tt>
+
+<table cellpadding="20">
+ <tr>
+ <td bgcolor="#ff0000">
+ <font size="+2">
+ [% error %]
+ </font>
+ </td>
+ </tr>
+</table>
+
+[% IF variables %]
+ <pre>
+Variables:
+ [% FOREACH key = variables.keys %]
+ [%+ key %]: [%+ variables.$key %]
+ [% END %]
+ </pre>
+[% END %]
+
+[% INCLUDE global/footer %]
diff --git a/template/en/default/global/footer.html.tmpl b/template/en/default/global/footer.html.tmpl
new file mode 100644
index 000000000..98d525a78
--- /dev/null
+++ b/template/en/default/global/footer.html.tmpl
@@ -0,0 +1,6 @@
+<!-- 1.0@bugzilla.org -->
+[% PerformSubsts(Param('footerhtml')) %]
+
+</body>
+</html>
+
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
new file mode 100644
index 000000000..4dc89e053
--- /dev/null
+++ b/template/en/default/global/header.html.tmpl
@@ -0,0 +1,64 @@
+<!-- 1.0@bugzilla.org -->
+[% DEFAULT
+ title = ""
+ h1 = title
+ h2 = ""
+ extra = ""
+ jscript = ""
+ style = ""
+ message = ""
+%]
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+ <head>
+ <title>[% title FILTER html %]</title>
+
+ [% Param('headerhtml') %]
+
+ [% jscript %]
+
+ <script type="application/x-javascript">
+ <!--
+ [%+ INCLUDE "help/show-hide.js.tmpl" %]
+ // -->
+ </script>
+
+ [% IF style %]
+ <style type="text/css">
+ [% style %]
+ </style>
+ [% END %]
+
+ [% IF style_url %]
+ <link href="[% style_url %]" rel="stylesheet" type="text/css">
+ [% END %]
+
+ </head>
+
+ <body [% Param('bodyhtml') %][% " " %][% extra %]>
+
+ [% PerformSubsts(Param('bannerhtml')) %]
+
+[% IF h1 || h2 %]
+ <table border="0" cellspacing="0">
+ <tr>
+ <td valign="top" align="left">
+ <table border="0" cellpadding="0" cellspacing="2">
+ <tr>
+ <td valign="top" align="left" nowrap>
+ <font size="+1"><b>[% h1 %]</b></font>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td valign="middle">&nbsp;</td>
+ <td valign="middle" align="left">[% h2 %]</td>
+ </tr>
+ </table>
+[% END %]
+
+[% IF message %]
+ <table width="100%" cellspacing="0" cellpadding="5" border="1"><tr><td>
+ <font color="green">[% message %]</font>
+ </td></tr></table>
+[% END %]
diff --git a/template/en/default/global/hidden-fields.html.tmpl b/template/en/default/global/hidden-fields.html.tmpl
new file mode 100644
index 000000000..85df62435
--- /dev/null
+++ b/template/en/default/global/hidden-fields.html.tmpl
@@ -0,0 +1,32 @@
+<!-- 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): Myk Melez <myk@mozilla.org>
+ #%]
+
+[%# INTERFACE:
+ # form: hash; the form fields/values for which to generate hidden fields.
+ # exclude: string; a regular expression matching fields to exclude
+ # from the list of hidden fields generated by this template
+ #%]
+
+[%# Generate hidden form fields for non-excluded fields. %]
+[% FOREACH field = form %]
+ [% NEXT IF field.key.search(exclude) %]
+ <input type="hidden" name="[% field.key %]" value="[% field.value FILTER html %]">
+[% END %]
diff --git a/template/en/default/global/message.html.tmpl b/template/en/default/global/message.html.tmpl
new file mode 100644
index 000000000..d0c8281eb
--- /dev/null
+++ b/template/en/default/global/message.html.tmpl
@@ -0,0 +1,17 @@
+<!-- 1.0@bugzilla.org -->
+[% DEFAULT title = "Bugzilla Message" %]
+
+[% PROCESS global/header %]
+
+[%# The "header" template automatically displays the contents of a "message"
+ variable if it finds one, so it is not necessary to display the message
+ here. %]
+
+[%# Display a URL if the calling script has included one. %]
+[% IF url && link %]
+ <p>
+ <a href="[% url %]">[% link %]</a>
+ </p>
+[% END %]
+
+[% PROCESS global/footer %]
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
new file mode 100644
index 000000000..a76ad5fa7
--- /dev/null
+++ b/template/en/default/global/user-error.html.tmpl
@@ -0,0 +1,40 @@
+<!-- 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 %]
+[% END %]
+
+<table cellpadding="20">
+ <tr>
+ <td bgcolor="#ff0000">
+ <font size="+2">
+ [% error %]
+ </font>
+ </td>
+ </tr>
+</table>
+
+<p>
+ Please press <b>Back</b> and try again.
+</p>
+
+[% INCLUDE global/footer %]