summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-08 09:34:04 +0200
committerByron Jones <glob@mozilla.com>2015-07-08 09:34:04 +0200
commit952829714b22a5020afabb02b6bab6ce0c8572fa (patch)
tree51d37c74a4b8d221e48a2f17478674767ea63671 /extensions/BMO/template/en
parentb46c86a9013a85e6244cb78cdb4bba3c6f7cd5a9 (diff)
downloadbugzilla-952829714b22a5020afabb02b6bab6ce0c8572fa.tar.gz
bugzilla-952829714b22a5020afabb02b6bab6ce0c8572fa.tar.xz
Bug 1143132: emails about redirected attachment urls link to attachment-edit instead of the actual url (mozreview, github, etc)
Diffstat (limited to 'extensions/BMO/template/en')
-rw-r--r--extensions/BMO/template/en/default/hook/request/email-start.txt.tmpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/hook/request/email-start.txt.tmpl b/extensions/BMO/template/en/default/hook/request/email-start.txt.tmpl
new file mode 100644
index 000000000..bd2af3d6f
--- /dev/null
+++ b/extensions/BMO/template/en/default/hook/request/email-start.txt.tmpl
@@ -0,0 +1,15 @@
+[%# 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.
+ #%]
+
+[%
+ RETURN UNLESS attachment;
+ external = attachment.external_redirect;
+ RETURN UNLESS external;
+ attach_url.title = external.title;
+ attach_url.href = attachment.data;
+%]