From bfcab9b81d3aa6b31124a6068dda8f5061d4089a Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 7 Dec 2009 19:11:58 +0000 Subject: Bug 530009: Put the template header stuff required to display show_bug all in one place Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- template/en/default/attachment/created.html.tmpl | 16 +--------------- template/en/default/attachment/updated.html.tmpl | 20 +------------------- 2 files changed, 2 insertions(+), 34 deletions(-) (limited to 'template/en/default/attachment') diff --git a/template/en/default/attachment/created.html.tmpl b/template/en/default/attachment/created.html.tmpl index 4a977667c..da2fec823 100644 --- a/template/en/default/attachment/created.html.tmpl +++ b/template/en/default/attachment/created.html.tmpl @@ -26,23 +26,9 @@ [% PROCESS global/variables.none.tmpl %] [% bug = bugs.0 %] -[% bodyclasses = ['bz_bug', - "bz_status_$bug.bug_status", - "bz_product_$bug.product", - "bz_component_$bug.component", - "bz_bug_$bug.bug_id" - ] -%] -[% FOREACH group = bug.groups_in %] - [% bodyclasses.push("bz_group_$group.name") %] -[% END %] - +[% PROCESS "bug/show-header.html.tmpl" %] [% PROCESS global/header.html.tmpl title = "Attachment $attachment.id added to $terms.Bug $attachment.bug_id" - 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/attachment/updated.html.tmpl b/template/en/default/attachment/updated.html.tmpl index b75dc7242..9a74f5c98 100644 --- a/template/en/default/attachment/updated.html.tmpl +++ b/template/en/default/attachment/updated.html.tmpl @@ -25,28 +25,10 @@ [% PROCESS global/variables.none.tmpl %] [% 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_product_$bug.product", - "bz_component_$bug.component", - "bz_bug_$bug.bug_id" - ] -%] -[% FOREACH group = bug.groups_in %] - [% bodyclasses.push("bz_group_$group.name") %] -[% END %] +[% PROCESS "bug/show-header.html.tmpl" %] [% PROCESS global/header.html.tmpl title = "Changes Submitted to Attachment $attachment.id of $terms.Bug $attachment.bug_id" - header = "$terms.Bug $attachment.bug_id" - subheader = filtered_desc - header_addl_info = "Last modified: $filtered_timestamp" - 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" %]
-- cgit v1.2.3-24-g4f1b