From 9d5b7f95b6c4f042aa4c429919e2e9c308ba2358 Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" <> Date: Sun, 9 Mar 2008 23:58:38 +0000 Subject: Bug 367394 - "show_bug should include a class bz_group_ so pages can be styled" [p=reed r+a=LpSolit] --- template/en/default/attachment/created.html.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'template/en/default/attachment/created.html.tmpl') 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" ] -- cgit v1.2.3-24-g4f1b