]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 516635 - "Add "bz_product_<product-name>" to body classes" [p=reed r=LpSolit...
authorreed%reedloden.com <>
Mon, 19 Oct 2009 02:09:39 +0000 (02:09 +0000)
committerreed%reedloden.com <>
Mon, 19 Oct 2009 02:09:39 +0000 (02:09 +0000)
template/en/default/attachment/created.html.tmpl
template/en/default/attachment/updated.html.tmpl
template/en/default/bug/process/header.html.tmpl
template/en/default/bug/process/results.html.tmpl
template/en/default/bug/show.html.tmpl

index 22d5c1220ad8974d9738cf318036f8649cb632f8..4a977667cff78c2f0bf1efbcf439b8b6bb91f4d5 100644 (file)
@@ -28,6 +28,7 @@
 [% bug = bugs.0 %]
 [% bodyclasses = ['bz_bug',
                  "bz_status_$bug.bug_status",
+                 "bz_product_$bug.product",
                  "bz_component_$bug.component",
                  "bz_bug_$bug.bug_id"
                  ]
index e0a92bc8a56c0125211c39045e51081dfa65d4ab..b75dc7242dec28634cbd13a36caa23d2339cd8aa 100644 (file)
@@ -29,6 +29,7 @@
 [% filtered_timestamp = bug.delta_ts FILTER time %]
 [% bodyclasses = ['bz_bug',
                  "bz_status_$bug.bug_status",
+                 "bz_product_$bug.product",
                  "bz_component_$bug.component",
                  "bz_bug_$bug.bug_id"
                  ]
index 3ca8e10e88b2ff4d7c637158965fe3c36c5b040c..171d3b50d0f5515bcfd39cc44befac63926b39c1 100644 (file)
   [% title = "Change Votes" %]
 [% END %]
 
+[% bodyclasses = ['bz_bug',
+                 "bz_status_$bug.bug_status",
+                 "bz_component_$bug.component",
+                 "bz_bug_$bug.bug_id"
+                 ]
+%]
+[% FOREACH group = bug.groups_in %]
+  [% bodyclasses.push("bz_group_$group.name") %]
+[% END %]
 [% PROCESS global/header.html.tmpl
+  bodyclasses = bodyclasses
   javascript_urls = [ "js/util.js", "js/field.js", "js/yui/calendar.js" ]
   style_urls = [ "skins/standard/yui/calendar.css", "skins/standard/show_bug.css" ]
   doc_section = "bug_page.html"
index d2adca8b8d668d137bd8230b583cc87e4f4410f2..617c6850a4b8f1fe3fff5696c6bbf1367aef339b 100644 (file)
 [% PROCESS global/variables.none.tmpl %]
 
 [% UNLESS header_done %]
+  [% bodyclasses = ['bz_bug',
+                   "bz_status_$bug.bug_status",
+                   "bz_component_$bug.component",
+                   "bz_bug_$bug.bug_id"
+                   ]
+  %]
+  [% FOREACH group = bug.groups_in %]
+    [% bodyclasses.push("bz_group_$group.name") %]
+  [% END %]
   [% PROCESS bug/process/header.html.tmpl %]
 [% END %]
 
index b92acb134371612933982541ef437527f98832b4..44d637d45a804520d4915d125cfcdfc88839e2a4 100644 (file)
@@ -31,6 +31,7 @@
   [% filtered_timestamp = bug.delta_ts FILTER time %]
   [% bodyclasses = ['bz_bug',
                    "bz_status_$bug.bug_status",
+                   "bz_product_$bug.product",
                    "bz_component_$bug.component",
                    "bz_bug_$bug.bug_id"
                    ]