]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 223078 - Provide classes to allow user to style bugs depending on bug number...
authorgerv%gerv.net <>
Mon, 8 Dec 2003 06:46:28 +0000 (06:46 +0000)
committergerv%gerv.net <>
Mon, 8 Dec 2003 06:46:28 +0000 (06:46 +0000)
template/en/default/bug/show.html.tmpl
template/en/default/global/header.html.tmpl

index 44b9c72b49263e80a780d60cf2ac542bb00e7a90..ed56ae29d499edef3ce80e143c967c7a2e9cc27d 100644 (file)
 
 [% filtered_desc = bug.short_desc FILTER html %]
 [% filtered_timestamp = bug.delta_ts FILTER time %]
+[% bodyattrs = BLOCK %]class='bz_bug [% bug.bug_status 
+  FILTER css_class_quote %] [%+ bug.component 
+  FILTER css_class_quote %] [%+ 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"
   style_urls = [ "css/edit_bug.css" ]
+  bodyattrs = bodyattrs
 %]
 
 [% PROCESS bug/navigate.html.tmpl %]
index 4d9de8684a2a095c240eb4afe7e3570d1e6ea521..e5430ccbc6efd63aba1522c4daca243620d5ba36 100644 (file)
@@ -27,6 +27,7 @@
   # h2: string. Page subheader.
   # h3: string. Right-aligned subheader.
   # bgcolor: string. the page's background color ("#rrggbb").
+  # bodyattrs: any extra attributes for the <body> tag
   # onload: string. JavaScript code to run when the page finishes loading.
   # javascript: string. Javascript to go in the header.
   # style: string. CSS style.
@@ -43,6 +44,7 @@
   h3 = ""
   bgcolor = "#ffffff"
   onload = ""
+  bodyattrs = ""
 %]
 
 [%# We should be able to set the default value of the h1 variable
@@ -89,7 +91,7 @@
   # but set the bgcolor and onload attributes in the DEFAULT directive above.
   #%]
 
-  <body bgcolor="[% bgcolor %]" onload="[% onload %]">
+  <body bgcolor="[% bgcolor %]" onload="[% onload %]" [% bodyattrs %]>
 
 [%# Migration note: the following file corresponds to the old Param
   # 'bannerhtml'