summaryrefslogtreecommitdiffstats
path: root/template/en/default/email/flagmail-header.txt.tmpl
diff options
context:
space:
mode:
authorEd Morley <emorley@mozilla.com>2015-03-19 08:16:30 +0100
committerByron Jones <glob@mozilla.com>2015-03-19 08:16:30 +0100
commit6638a015487885a47bb0ba851865ef8b073d08fb (patch)
tree114070587bef8d7eb8dbc1f833258adbcd73dafd /template/en/default/email/flagmail-header.txt.tmpl
parent2f65ef51e9ba430783a2d9ef06e0aa0af041d510 (diff)
downloadbugzilla-6638a015487885a47bb0ba851865ef8b073d08fb.tar.gz
bugzilla-6638a015487885a47bb0ba851865ef8b073d08fb.tar.xz
Bug 1105568: Add support for HTML flagmail
r=glob,a=glob
Diffstat (limited to 'template/en/default/email/flagmail-header.txt.tmpl')
-rw-r--r--template/en/default/email/flagmail-header.txt.tmpl28
1 files changed, 28 insertions, 0 deletions
diff --git a/template/en/default/email/flagmail-header.txt.tmpl b/template/en/default/email/flagmail-header.txt.tmpl
new file mode 100644
index 000000000..8aa3955f7
--- /dev/null
+++ b/template/en/default/email/flagmail-header.txt.tmpl
@@ -0,0 +1,28 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[% flagtype_name = flag ? flag.type.name : old_flag.type.name %]
+[% statuses = { '+' => "granted" , '-' => 'denied' , 'X' => "canceled" ,
+ '?' => "asked" } %]
+
+[% action = flag.status || 'X' %]
+
+[% IF flag && flag.status == '?' %]
+ [% subject_status = "requested" %]
+[% ELSE %]
+ [% subject_status = statuses.$action %]
+[% END %]
+From: [% Param('mailfrom') %]
+To: [% to %]
+Subject: [% flagtype_name %] [%+ subject_status %]: [[% terms.Bug %] [%+ bug.bug_id %]] [% bug.short_desc %]
+[%- IF attachment %] :
+ [Attachment [% attachment.id %]] [% attachment.description FILTER clean_text %][% END %]
+Date: [% date %]
+X-Bugzilla-Type: request
+[%+ INCLUDE "email/header-common.txt.tmpl" %]
+[%+ threadingmarker %]