From d033109bdc8729e9ef46fc82ad200c7d2cda5a1a Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Fri, 19 Apr 2002 01:56:11 +0000 Subject: 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. --- .../en/default/global/choose-product.html.tmpl | 42 ++++++++++++++ template/en/default/global/code-error.html.tmpl | 57 +++++++++++++++++++ template/en/default/global/footer.html.tmpl | 6 ++ template/en/default/global/header.html.tmpl | 64 ++++++++++++++++++++++ template/en/default/global/hidden-fields.html.tmpl | 32 +++++++++++ template/en/default/global/message.html.tmpl | 17 ++++++ template/en/default/global/user-error.html.tmpl | 40 ++++++++++++++ 7 files changed, 258 insertions(+) create mode 100644 template/en/default/global/choose-product.html.tmpl create mode 100644 template/en/default/global/code-error.html.tmpl create mode 100644 template/en/default/global/footer.html.tmpl create mode 100644 template/en/default/global/header.html.tmpl create mode 100644 template/en/default/global/hidden-fields.html.tmpl create mode 100644 template/en/default/global/message.html.tmpl create mode 100644 template/en/default/global/user-error.html.tmpl (limited to 'template/en/default/global') 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 @@ + +[%# 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 + #%] + +[% DEFAULT title = "Choose a Product" %] +[% INCLUDE global/header %] + + + +[% FOREACH p = proddesc.keys.sort %] + + + + [% IF proddesc.$p %] + + [% END %] + +[% END %] + +
+ + [% p FILTER html %]: +  [% proddesc.$p %]
+ +[% 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 @@ + +[%# 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 + #%] + +[% UNLESS header_done %] + [% INCLUDE global/header %] +[% END %] + + +

+ 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. +

+ +
+ + + + + +
+ + [% error %] + +
+ +[% IF variables %] +
+Variables:
+  [% FOREACH key = variables.keys %]
+    [%+ key %]: [%+ variables.$key %]
+  [% END %]
+  
+[% 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 @@ + +[% PerformSubsts(Param('footerhtml')) %] + + + + 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 @@ + +[% DEFAULT + title = "" + h1 = title + h2 = "" + extra = "" + jscript = "" + style = "" + message = "" +%] + + + + [% title FILTER html %] + + [% Param('headerhtml') %] + + [% jscript %] + + + + [% IF style %] + + [% END %] + + [% IF style_url %] + + [% END %] + + + + + + [% PerformSubsts(Param('bannerhtml')) %] + +[% IF h1 || h2 %] + + + + + + +
+ + + + +
+ [% h1 %] +
+
 [% h2 %]
+[% END %] + +[% IF message %] +
+ [% message %] +
+[% 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 @@ + +[%# 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 + #%] + +[%# 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) %] + +[% 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 @@ + +[% 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 %] +

+ [% link %] +

+[% 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 @@ + +[%# 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 + #%] + +[% UNLESS header_done %] + [% INCLUDE global/header %] +[% END %] + + + + + +
+ + [% error %] + +
+ +

+ Please press Back and try again. +

+ +[% INCLUDE global/footer %] -- cgit v1.2.3-24-g4f1b