summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/email
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-09-04 17:04:11 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-09-04 17:04:11 +0200
commit87f2b0d50663ce1dd85a501fa62546896dd80be9 (patch)
tree70cd25ac474322a0530c9c6fbb1eb3d8332ffaa4 /extensions/BMO/template/en/default/email
parentc37ed27928f66df58fac01e9efc85e424333f623 (diff)
downloadbugzilla-87f2b0d50663ce1dd85a501fa62546896dd80be9.tar.gz
bugzilla-87f2b0d50663ce1dd85a501fa62546896dd80be9.tar.xz
Bug 773327 - Add a new footer to bugmail content that shows current tracking flag values
Diffstat (limited to 'extensions/BMO/template/en/default/email')
-rw-r--r--extensions/BMO/template/en/default/email/bugmail.html.tmpl22
-rw-r--r--extensions/BMO/template/en/default/email/bugmail.txt.tmpl15
2 files changed, 36 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 fbbad46bf..21a1279af 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 {
+ #noreply, #reason, #tracking {
font-size: 90%;
color: #666666;
}
@@ -90,6 +90,25 @@
<br>
[% END %]
+[% USE Bugzilla %]
+[% tracking_flags = [] %]
+[% FOREACH field = Bugzilla.active_custom_fields(product => bug.product_obj, component => bug.component_obj, type => 2) %]
+ [% NEXT IF cf_flag_disabled(field.name, bug) %]
+ [% NEXT IF bug.${field.name} == "---" %]
+ [% tracking_flags.push(field) %]
+[% END %]
+[% IF tracking_flags.size %]
+ <div id="tracking">
+ <hr>
+ <b>Tracking Flags:</b>
+ <ul>
+ [% FOREACH field = tracking_flags %]
+ <li>[% field.description FILTER html %]:[% bug.${field.name} FILTER html %]</li>
+ [% END %]
+ </ul>
+ </div>
+[% END %]
+
<div id="reason">
<hr>
<b>You are receiving this mail because:</b>
@@ -106,6 +125,7 @@
[% END %]
</ul>
</div>
+
</body>
</html>
diff --git a/extensions/BMO/template/en/default/email/bugmail.txt.tmpl b/extensions/BMO/template/en/default/email/bugmail.txt.tmpl
index d6b869841..c82827c61 100644
--- a/extensions/BMO/template/en/default/email/bugmail.txt.tmpl
+++ b/extensions/BMO/template/en/default/email/bugmail.txt.tmpl
@@ -35,6 +35,21 @@ Referenced [% terms.Bugs %]:
-- [%# Protect the trailing space of the signature marker %]
Configure [% terms.bug %]mail: [% urlbase %]userprefs.cgi?tab=email
+
+[% USE Bugzilla %]
+[% tracking_flags = [] %]
+[% FOREACH field = Bugzilla.active_custom_fields(product => bug.product_obj, component => bug.component_obj, type => 2) %]
+ [% NEXT IF cf_flag_disabled(field.name, bug) %]
+ [% NEXT IF bug.${field.name} == "---" %]
+ [% tracking_flags.push(field) %]
+[% END %]
+[% IF tracking_flags.size %]
+------- Tracking Flags: -------
+[% FOREACH field = tracking_flags %]
+[%+ field.description %]:[% bug.${field.name} %]
+[% END %]
+[% END %]
+
------- You are receiving this mail because: -------
[% SET reason_lines = [] %]
[% FOREACH reason = reasons %]