summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-06-05 07:54:01 +0200
committermyk%mozilla.org <>2002-06-05 07:54:01 +0200
commit633f6e9de3706e593c46eb680984015f19251145 (patch)
tree6e04ab3f82a9a76318685eb25ac1ef534195919e /template/en/default
parent94e374422292ac533d7844605305f473ebc0155c (diff)
downloadbugzilla-633f6e9de3706e593c46eb680984015f19251145.tar.gz
bugzilla-633f6e9de3706e593c46eb680984015f19251145.tar.xz
Fix for bug 148179: Cleans up interface to header.html.tmpl.
r=justdave,bbaetz
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/attachment/create.html.tmpl2
-rw-r--r--template/en/default/global/header.html.tmpl10
-rw-r--r--template/en/default/search/search-advanced.html.tmpl2
-rw-r--r--template/en/default/search/search.html.tmpl2
4 files changed, 11 insertions, 5 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl
index 332d0d5f0..15f2e9e22 100644
--- a/template/en/default/attachment/create.html.tmpl
+++ b/template/en/default/attachment/create.html.tmpl
@@ -32,7 +32,7 @@
th { text-align: right; vertical-align: baseline; white-space: nowrap; }
td { text-align: left; vertical-align: baseline; padding-bottom: 5px; }
"
- body_attributes = "onload=\"setContentTypeDisabledState();\""
+ onload="setContentTypeDisabledState();"
%]
<form name="entryform" method="post" action="attachment.cgi" enctype="multipart/form-data">
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index 1a8ce33a8..0cc4badcf 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -24,6 +24,8 @@
# title: string. Page title.
# h1: string. Main page header.
# h2: string. Page subheader.
+ # bgcolor: string. the page's background color ("#rrggbb").
+ # onload: string. JavaScript code to run when the page finishes loading.
# extra: string. Any other HTML to go inside the <head> tags.
# jscript: string. Javascript to go in the header.
# style: string. CSS style.
@@ -33,6 +35,8 @@
[% DEFAULT
h1 = title
h2 = ""
+ bgcolor = "#ffccff"
+ onload = ""
%]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -61,9 +65,11 @@
</head>
-[%# Migration note: contents of the old Param 'bodyhtml' go in the body tag %]
+[%# Migration note: contents of the old Param 'bodyhtml' go in the body tag,
+ # but set the bgcolor and onload attributes in the DEFAULT directive above.
+ #%]
- <body [% "bgcolor=\"#FFFFFF\"" UNLESS body_attributes.search('(?:^|\s)bgcolor=') %] [%+ body_attributes %]>
+ <body bgcolor="[% bgcolor %]" onload="[% onload %]">
[%# Migration note: the following file corresponds to the old Param
# 'bannerhtml'
diff --git a/template/en/default/search/search-advanced.html.tmpl b/template/en/default/search/search-advanced.html.tmpl
index d5961ebd2..09e83add8 100644
--- a/template/en/default/search/search-advanced.html.tmpl
+++ b/template/en/default/search/search-advanced.html.tmpl
@@ -27,7 +27,7 @@
[% PROCESS global/header.html.tmpl
title = "Search for bugs"
- body_attributes = "onload=\"selectProduct(document.forms['queryform']);\""
+ onload = "selectProduct(document.forms['queryform']);"
%]
[% button_name = "Search" %]
diff --git a/template/en/default/search/search.html.tmpl b/template/en/default/search/search.html.tmpl
index d5961ebd2..09e83add8 100644
--- a/template/en/default/search/search.html.tmpl
+++ b/template/en/default/search/search.html.tmpl
@@ -27,7 +27,7 @@
[% PROCESS global/header.html.tmpl
title = "Search for bugs"
- body_attributes = "onload=\"selectProduct(document.forms['queryform']);\""
+ onload = "selectProduct(document.forms['queryform']);"
%]
[% button_name = "Search" %]