summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-11-30 16:20:48 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-11-30 16:20:48 +0100
commit0309b1599d3444db3a3d29c3c3f3dfcab7fc4c89 (patch)
tree9c469d69149d0cee16ecfd7468d21882aa7f2cc9
parent07ae61fcd3d2ecf7ccf9d6a1267ee0ab5c4c1db2 (diff)
downloadbugzilla-0309b1599d3444db3a3d29c3c3f3dfcab7fc4c89.tar.gz
bugzilla-0309b1599d3444db3a3d29c3c3f3dfcab7fc4c89.tar.xz
Bug 417756 - An option to get Product/Component in email subject/body
r=glob
-rw-r--r--extensions/BMO/template/en/default/email/bugmail.html.tmpl7
-rw-r--r--extensions/BMO/template/en/default/email/bugmail.txt.tmpl3
2 files changed, 9 insertions, 1 deletions
diff --git a/extensions/BMO/template/en/default/email/bugmail.html.tmpl b/extensions/BMO/template/en/default/email/bugmail.html.tmpl
index 9fbefa02b..6385fe09a 100644
--- a/extensions/BMO/template/en/default/email/bugmail.html.tmpl
+++ b/extensions/BMO/template/en/default/email/bugmail.html.tmpl
@@ -30,7 +30,7 @@
.new .c1 {
border-right: 1px solid #969696;
}
- #noreply, #reason, #tracking {
+ #noreply, #reason, #tracking, #bug_details {
font-size: 90%;
color: #666666;
}
@@ -90,6 +90,11 @@
<br>
[% END %]
+ <div id="bug_details">
+ <hr>
+ Product | Component: [% bug.product FILTER html %] | [% bug.component FILTER html %]
+ </div>
+
[% USE Bugzilla %]
[% tracking_flags = [] %]
[% FOREACH field = Bugzilla.active_custom_fields(product => bug.product_obj, component => bug.component_obj, type => 2) %]
diff --git a/extensions/BMO/template/en/default/email/bugmail.txt.tmpl b/extensions/BMO/template/en/default/email/bugmail.txt.tmpl
index c82827c61..5fee39374 100644
--- a/extensions/BMO/template/en/default/email/bugmail.txt.tmpl
+++ b/extensions/BMO/template/en/default/email/bugmail.txt.tmpl
@@ -36,6 +36,9 @@ Referenced [% terms.Bugs %]:
-- [%# Protect the trailing space of the signature marker %]
Configure [% terms.bug %]mail: [% urlbase %]userprefs.cgi?tab=email
+-------------------------------
+Product | Component: [%+ bug.product +%] | [%+ bug.component %]
+
[% USE Bugzilla %]
[% tracking_flags = [] %]
[% FOREACH field = Bugzilla.active_custom_fields(product => bug.product_obj, component => bug.component_obj, type => 2) %]