From 87f2b0d50663ce1dd85a501fa62546896dd80be9 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Tue, 4 Sep 2012 11:04:11 -0400 Subject: Bug 773327 - Add a new footer to bugmail content that shows current tracking flag values --- .../template/en/default/email/bugmail.html.tmpl | 22 +++++++++++++++++++++- .../BMO/template/en/default/email/bugmail.txt.tmpl | 15 +++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) (limited to 'extensions/BMO/template/en/default') 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 @@
[% 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 %] +
+
+ Tracking Flags: + +
+[% END %] +

You are receiving this mail because: @@ -106,6 +125,7 @@ [% END %]
+ 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 %] -- cgit v1.2.3-24-g4f1b