diff options
Diffstat (limited to 'extensions/BMO/template/en/default/email')
-rw-r--r-- | extensions/BMO/template/en/default/email/bugmail.html.tmpl | 22 | ||||
-rw-r--r-- | extensions/BMO/template/en/default/email/bugmail.txt.tmpl | 15 |
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 %] |