summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2016-03-23 04:25:52 +0100
committerByron Jones <glob@mozilla.com>2016-03-23 04:25:52 +0100
commit74c6f9974fddc33163ae78c5927c6569f2eb28c0 (patch)
treea1ffee4e352dafa5b1709fb392bee7c4d69dafec /extensions
parent0c94e1dd07b705ba000c008b08c8f5aa27731932 (diff)
downloadbugzilla-74c6f9974fddc33163ae78c5927c6569f2eb28c0.tar.gz
bugzilla-74c6f9974fddc33163ae78c5927c6569f2eb28c0.tar.xz
Bug 1251236 - Please show the diff on the attachment details page when a patch has been reviewed in MozReview
Diffstat (limited to 'extensions')
-rw-r--r--extensions/MozReview/template/en/default/hook/attachment/edit-view.html.tmpl16
1 files changed, 16 insertions, 0 deletions
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;
+%]
+<h3>
+ <a href="[% url FILTER none %]" title="[% url FILTER html %]">Show review on MozReview</a><br>
+</h3>