summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/header.html.tmpl
diff options
context:
space:
mode:
authorjustdave%bugzilla.org <>2004-10-25 13:28:31 +0200
committerjustdave%bugzilla.org <>2004-10-25 13:28:31 +0200
commite63b2d6e7555d960914c0c21e2ebe9260001ecc8 (patch)
tree52a0e965cb057430b388e7fd4f40a56d81c7e518 /template/en/default/global/header.html.tmpl
parent6045801e1251ffd78153e0bf4e3f08995ee76c68 (diff)
downloadbugzilla-e63b2d6e7555d960914c0c21e2ebe9260001ecc8.tar.gz
bugzilla-e63b2d6e7555d960914c0c21e2ebe9260001ecc8.tar.xz
Bug 251596: show.html.tmpl wasn't using the customized body attribute
Patch by Marc Schumann <wurblzap@gmail.com> r=kiko, a=myk
Diffstat (limited to 'template/en/default/global/header.html.tmpl')
-rw-r--r--template/en/default/global/header.html.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index 55a998f16..7ad957ddc 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -28,6 +28,7 @@
# h3: string. Right-aligned subheader.
# bgcolor: string. the page's background color ("#rrggbb").
# bodyattrs: any extra attributes for the <body> tag
+ # bodyclasses: array of extra CSS classes for the <body>
# onload: string. JavaScript code to run when the page finishes loading.
# javascript: string. Javascript to go in the header.
# javascript_urls: list. List of URLs to Javascript.
@@ -106,8 +107,11 @@
#%]
<body bgcolor="[% bgcolor %]" onload="[% onload %]"
- class="[% Param('urlbase').replace('^https?://','').replace('/$','').replace('[-~@:/.]+','-') %]"
- [%+ bodyattrs %]>
+ class="[% Param('urlbase').replace('^https?://','').replace('/$','').replace('[-~@:/.]+','-') %]
+ [% FOREACH class = bodyclasses %]
+ [% ' ' %][% class FILTER css_class_quote %]
+ [% END %]"
+ [% bodyattrs %]>
[%# Migration note: the following file corresponds to the old Param
# 'bannerhtml'