summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-12-07 20:11:58 +0100
committermkanat%bugzilla.org <>2009-12-07 20:11:58 +0100
commitbfcab9b81d3aa6b31124a6068dda8f5061d4089a (patch)
treefd780dcbfdb229ee6d11e74a39e8b1faeb156428 /template/en/default/attachment
parent52d3817935a8b93048884bcdfe1c03822afd3efc (diff)
downloadbugzilla-bfcab9b81d3aa6b31124a6068dda8f5061d4089a.tar.gz
bugzilla-bfcab9b81d3aa6b31124a6068dda8f5061d4089a.tar.xz
Bug 530009: Put the template header stuff required to display show_bug all in one place
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r--template/en/default/attachment/created.html.tmpl16
-rw-r--r--template/en/default/attachment/updated.html.tmpl20
2 files changed, 2 insertions, 34 deletions
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"
%]
<dl>
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&nbsp;$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"
%]
<dl>