From 5b5d877f48b5154a641296089db1ff815b860fae Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" <> Date: Mon, 19 Oct 2009 02:09:39 +0000 Subject: Bug 516635 - "Add "bz_product_" to body classes" [p=reed r=LpSolit a=LpSolit] --- template/en/default/attachment/created.html.tmpl | 1 + template/en/default/attachment/updated.html.tmpl | 1 + template/en/default/bug/process/header.html.tmpl | 10 ++++++++++ template/en/default/bug/process/results.html.tmpl | 9 +++++++++ template/en/default/bug/show.html.tmpl | 1 + 5 files changed, 22 insertions(+) (limited to 'template/en') 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" ] -- cgit v1.2.3-24-g4f1b