summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorreed%reedloden.com <>2008-03-10 00:58:38 +0100
committerreed%reedloden.com <>2008-03-10 00:58:38 +0100
commit9d5b7f95b6c4f042aa4c429919e2e9c308ba2358 (patch)
treed615bc80f96b014e4bef261ec5f82c0d71a7c177 /template
parent4e0bdbf2ab9908aa14f29a58cf887b9c5b853255 (diff)
downloadbugzilla-9d5b7f95b6c4f042aa4c429919e2e9c308ba2358.tar.gz
bugzilla-9d5b7f95b6c4f042aa4c429919e2e9c308ba2358.tar.xz
Bug 367394 - "show_bug should include a class bz_group_<whatever> so pages can be styled" [p=reed r+a=LpSolit]
Diffstat (limited to 'template')
-rw-r--r--template/en/default/attachment/created.html.tmpl11
-rw-r--r--template/en/default/attachment/updated.html.tmpl15
-rw-r--r--template/en/default/bug/show.html.tmpl15
3 files changed, 31 insertions, 10 deletions
diff --git a/template/en/default/attachment/created.html.tmpl b/template/en/default/attachment/created.html.tmpl
index d0358dac3..2b4316542 100644
--- a/template/en/default/attachment/created.html.tmpl
+++ b/template/en/default/attachment/created.html.tmpl
@@ -25,9 +25,20 @@
#%]
[% PROCESS global/variables.none.tmpl %]
+[% bug = bugs.0 %]
+[% 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
title = "Attachment $attachment.id added to $terms.Bug $attachment.bug_id"
+ bodyclasses = bodyclasses
javascript_urls = [ "js/util.js", "js/keyword-chooser.js", "js/field.js",
"js/yui/yahoo-dom-event.js", "js/yui/calendar.js" ]
style_urls = [ "skins/standard/yui/calendar.css", "skins/standard/show_bug.css" ]
diff --git a/template/en/default/attachment/updated.html.tmpl b/template/en/default/attachment/updated.html.tmpl
index 4b9160710..2b9064c6a 100644
--- a/template/en/default/attachment/updated.html.tmpl
+++ b/template/en/default/attachment/updated.html.tmpl
@@ -27,17 +27,22 @@
[% bug = bugs.0 %]
[% filtered_desc = bug.short_desc FILTER html %]
[% filtered_timestamp = bug.delta_ts FILTER time %]
+[% 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
title = "Changes Submitted to Attachment $attachment.id of $terms.Bug $attachment.bug_id"
header = "$terms.Bug&nbsp;$attachment.bug_id"
subheader = filtered_desc
header_addl_info = "Last modified: $filtered_timestamp"
- bodyclasses = ['bz_bug',
- "bz_status_$bug.bug_status",
- "bz_component_$bug.component",
- "bz_bug_$bug.bug_id"
- ]
+ bodyclasses = bodyclasses
javascript_urls = [ "js/util.js", "js/keyword-chooser.js", "js/field.js",
"js/yui/yahoo-dom-event.js", "js/yui/calendar.js" ]
style_urls = [ "skins/standard/yui/calendar.css", "skins/standard/show_bug.css" ]
diff --git a/template/en/default/bug/show.html.tmpl b/template/en/default/bug/show.html.tmpl
index 78d166537..33a65a6b1 100644
--- a/template/en/default/bug/show.html.tmpl
+++ b/template/en/default/bug/show.html.tmpl
@@ -29,16 +29,21 @@
[% IF !header_done %]
[% filtered_desc = bug.short_desc FILTER html %]
[% filtered_timestamp = bug.delta_ts FILTER time %]
+ [% 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
title = "$terms.Bug $bug.bug_id &ndash; $filtered_desc"
header = "$terms.Bug&nbsp;$bug.bug_id"
subheader = filtered_desc
header_addl_info = "Last modified: $filtered_timestamp"
- bodyclasses = ['bz_bug',
- "bz_status_$bug.bug_status",
- "bz_component_$bug.component",
- "bz_bug_$bug.bug_id"
- ]
+ bodyclasses = bodyclasses
javascript_urls = [ "js/util.js", "js/keyword-chooser.js", "js/field.js",
"js/yui/yahoo-dom-event.js", "js/yui/calendar.js" ]
style_urls = [ "skins/standard/yui/calendar.css", "skins/standard/show_bug.css" ]