From 74c6f9974fddc33163ae78c5927c6569f2eb28c0 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 23 Mar 2016 11:25:52 +0800 Subject: Bug 1251236 - Please show the diff on the attachment details page when a patch has been reviewed in MozReview --- .../en/default/hook/attachment/edit-view.html.tmpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 extensions/MozReview/template/en/default/hook/attachment/edit-view.html.tmpl (limited to 'extensions') diff --git a/extensions/MozReview/template/en/default/hook/attachment/edit-view.html.tmpl b/extensions/MozReview/template/en/default/hook/attachment/edit-view.html.tmpl new file mode 100644 index 000000000..571d69b50 --- /dev/null +++ b/extensions/MozReview/template/en/default/hook/attachment/edit-view.html.tmpl @@ -0,0 +1,16 @@ +[%# 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.mimetype == "text/x-review-board-request" && attachment.external_redirect; + custom_attachment_viewer = 1; + url = attachment.data; +%] +

+ Show review on MozReview
+

-- cgit v1.2.3-24-g4f1b