summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-11-03 07:50:09 +0100
committerjocuri%softhome.net <>2004-11-03 07:50:09 +0100
commit038e3b0e82dde2dec9a426cbbdf4e615d5f2a308 (patch)
tree71a708a0932307900bd5c78fd0b53606f44770cd /template/en/default/global
parent6d3765117ff158848c11799127296de96080e719 (diff)
downloadbugzilla-038e3b0e82dde2dec9a426cbbdf4e615d5f2a308.tar.gz
bugzilla-038e3b0e82dde2dec9a426cbbdf4e615d5f2a308.tar.xz
Patch for bug 251596: make show.html template use customized body attribute; patch by Marc Schumann <wurblzap@gmail.com>; r=kiko, a=justdave.
Diffstat (limited to 'template/en/default/global')
-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..4a4c6e19c 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'