From 952829714b22a5020afabb02b6bab6ce0c8572fa Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 8 Jul 2015 15:34:04 +0800 Subject: Bug 1143132: emails about redirected attachment urls link to attachment-edit instead of the actual url (mozreview, github, etc) --- .../template/en/default/hook/request/email-start.txt.tmpl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 extensions/BMO/template/en/default/hook/request/email-start.txt.tmpl (limited to 'extensions/BMO/template/en/default') 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; +%] -- cgit v1.2.3-24-g4f1b