summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/hook
diff options
context:
space:
mode:
authorDave Lawrence <dkl@mozilla.com>2011-11-07 21:16:03 +0100
committerDave Lawrence <dkl@mozilla.com>2011-11-07 21:16:03 +0100
commitd1577fa0afc1dff7729c201879127d1c3609c0c7 (patch)
treee87094e2671a4c2e79b854203f3506f67dccbc93 /extensions/BMO/template/en/default/hook
parenta69987ae8fbc227ec1bf4633ad308be81c9f9ff3 (diff)
downloadbugzilla-d1577fa0afc1dff7729c201879127d1c3609c0c7.tar.gz
bugzilla-d1577fa0afc1dff7729c201879127d1c3609c0c7.tar.xz
Bug 691672 - Apply the background color for security bugs to attachment details pages for those bugs as well
r=glob
Diffstat (limited to 'extensions/BMO/template/en/default/hook')
-rw-r--r--extensions/BMO/template/en/default/hook/global/header-start.html.tmpl31
1 files changed, 31 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/hook/global/header-start.html.tmpl b/extensions/BMO/template/en/default/hook/global/header-start.html.tmpl
index 9c96ebffa..af6c63123 100644
--- a/extensions/BMO/template/en/default/hook/global/header-start.html.tmpl
+++ b/extensions/BMO/template/en/default/hook/global/header-start.html.tmpl
@@ -6,6 +6,37 @@
[% javascript_urls.push('extensions/BMO/web/js/sorttable.js') %]
[% END %]
+[% IF !bodyclasses %]
+ [% bodyclasses = [] %]
+[% END %]
+
+[%# Change the background/border for bugs/attachments in certain bug groups %]
+[% IF template.name == 'attachment/edit.html.tmpl'
+ || template.name == 'attachment/create.html.tmpl'
+ || template.name == 'attachment/diff-header.html.tmpl' %]
+ [% style_urls.push("skins/standard/bug_groups.css") %]
+
+ [% IF template.name == 'attachment/edit.html.tmpl'
+ || template.name == 'attachment/diff-header.html.tmpl' %]
+ [% IF bodyclasses == 'no_javascript' %]
+ [% bodyclasses = ['no_javascript'] %]
+ [% END %]
+ [% FOREACH group = attachment.bug.groups_in %]
+ [% bodyclasses.push("bz_group_$group.name") %]
+ [% END %]
+ [% END %]
+
+ [% IF template.name == 'attachment/create.html.tmpl' %]
+ [% FOREACH group = bug.groups_in %]
+ [% bodyclasses.push("bz_group_$group.name") %]
+ [% END %]
+ [% END %]
+[% END %]
+
+[% IF template.name == 'bug/show-header.html.tmpl' %]
+[% style_urls.push("skins/standard/bug_groups.css") %]
+[% END %]
+
[% IF user.in_group('editusers') || user.bless_groups.size > 0 %]
[% yui.push('container', 'menu') %]
[% style_urls.push('js/yui/assets/skins/sam/menu.css') %]