summaryrefslogtreecommitdiffstats
path: root/extensions/MozReview/template
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/MozReview/template')
-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>