From: justdave%bugzilla.org <> Date: Mon, 25 Oct 2004 11:28:31 +0000 (+0000) Subject: Bug 251596: show.html.tmpl wasn't using the customized body attribute X-Git-Tag: bugzilla-2.19.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e63b2d6e7555d960914c0c21e2ebe9260001ecc8;p=thirdparty%2Fbugzilla.git Bug 251596: show.html.tmpl wasn't using the customized body attribute Patch by Marc Schumann r=kiko, a=myk --- diff --git a/template/en/default/bug/show.html.tmpl b/template/en/default/bug/show.html.tmpl index f98e05f0cb..8db59a9800 100644 --- a/template/en/default/bug/show.html.tmpl +++ b/template/en/default/bug/show.html.tmpl @@ -28,17 +28,16 @@ [% filtered_desc = bug.short_desc FILTER html %] [% filtered_timestamp = bug.delta_ts FILTER time %] -[% bodyattrs = BLOCK %]class='bz_bug bz_status_[% bug.bug_status - FILTER css_class_quote %] bz_component_[% bug.component - FILTER css_class_quote %] bz_bug_[% bug.bug_id - FILTER css_class_quote %]' -[% END %] [% PROCESS global/header.html.tmpl title = "$terms.Bug $bug.bug_id - $bug.short_desc" h1 = "$terms.Bugzilla $terms.Bug $bug.bug_id" h2 = filtered_desc h3 = "Last modified: $filtered_timestamp" - bodyattrs = bodyattrs + bodyclasses = ['bz_bug', + "bz_status_$bug.bug_status", + "bz_component_$bug.component", + "bz_bug_$bug.bug_id" + ] %] [% PROCESS bug/navigate.html.tmpl %] diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 55a998f16d..7ad957ddc6 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 tag + # bodyclasses: array of extra CSS classes for the # 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 @@ #%] + 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'