From 0742929eb43ee5e3e67b59a9159ca416cbd0d4be Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Sun, 3 Feb 2002 17:27:02 +0000 Subject: Fix for bug 121747: Stops every script before it does anything else if Bugzilla is currently shut down. Also adds global template instantiation code to globals.pl. Patch by Myk Melez . r=gerv,kiko --- template/default/global/header | 13 +++++-------- template/default/global/message.html.tmpl | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 template/default/global/message.html.tmpl (limited to 'template/default') diff --git a/template/default/global/header b/template/default/global/header index 1efdbf51c..627a52571 100755 --- a/template/default/global/header +++ b/template/default/global/header @@ -41,11 +41,8 @@ [% END %] - [% IF message %] -
- [% message %] -
- [% END %] - - [% Param('shutdownhtml') %] - +[% IF message %] +
+ [% message %] +
+[% END %] diff --git a/template/default/global/message.html.tmpl b/template/default/global/message.html.tmpl new file mode 100644 index 000000000..03253242a --- /dev/null +++ b/template/default/global/message.html.tmpl @@ -0,0 +1,16 @@ +[% DEFAULT title = "Bugzilla Message" %] + +[% INCLUDE global/header title=title %] + +[%# 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 %] + +[% INCLUDE global/footer %] -- cgit v1.2.1