summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorreed%reedloden.com <>2009-10-19 04:09:39 +0200
committerreed%reedloden.com <>2009-10-19 04:09:39 +0200
commit5b5d877f48b5154a641296089db1ff815b860fae (patch)
tree8777a72d745ddaf69e40a98e45de5d2097f793e6 /template
parenta7310a522e4ac2b24d01f0cdf44e132d0db8f73b (diff)
downloadbugzilla-5b5d877f48b5154a641296089db1ff815b860fae.tar.gz
bugzilla-5b5d877f48b5154a641296089db1ff815b860fae.tar.xz
Bug 516635 - "Add "bz_product_<product-name>" to body classes" [p=reed r=LpSolit a=LpSolit]
Diffstat (limited to 'template')
-rw-r--r--template/en/default/attachment/created.html.tmpl1
-rw-r--r--template/en/default/attachment/updated.html.tmpl1
-rw-r--r--template/en/default/bug/process/header.html.tmpl10
-rw-r--r--template/en/default/bug/process/results.html.tmpl9
-rw-r--r--template/en/default/bug/show.html.tmpl1
5 files changed, 22 insertions, 0 deletions
diff --git a/template/en/default/attachment/created.html.tmpl b/template/en/default/attachment/created.html.tmpl
index 22d5c1220..4a977667c 100644
--- a/template/en/default/attachment/created.html.tmpl
+++ b/template/en/default/attachment/created.html.tmpl
@@ -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"
]
diff --git a/template/en/default/attachment/updated.html.tmpl b/template/en/default/attachment/updated.html.tmpl
index e0a92bc8a..b75dc7242 100644
--- a/template/en/default/attachment/updated.html.tmpl
+++ b/template/en/default/attachment/updated.html.tmpl
@@ -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"
]
diff --git a/template/en/default/bug/process/header.html.tmpl b/template/en/default/bug/process/header.html.tmpl
index 3ca8e10e8..171d3b50d 100644
--- a/template/en/default/bug/process/header.html.tmpl
+++ b/template/en/default/bug/process/header.html.tmpl
@@ -41,7 +41,17 @@
[% 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"
diff --git a/template/en/default/bug/process/results.html.tmpl b/template/en/default/bug/process/results.html.tmpl
index d2adca8b8..617c6850a 100644
--- a/template/en/default/bug/process/results.html.tmpl
+++ b/template/en/default/bug/process/results.html.tmpl
@@ -31,6 +31,15 @@
[% 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 %]
diff --git a/template/en/default/bug/show.html.tmpl b/template/en/default/bug/show.html.tmpl
index b92acb134..44d637d45 100644
--- a/template/en/default/bug/show.html.tmpl
+++ b/template/en/default/bug/show.html.tmpl
@@ -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"
]