summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-10-19 16:25:15 +0200
committerByron Jones <glob@mozilla.com>2015-10-19 16:25:15 +0200
commit0ce40b991790cd7695f289b27237b8f2751e5f9b (patch)
tree20adb737898b112b2896cf899ee2237ecbcb0cf4 /extensions/BMO/template
parenta0fcc8ff20fe57bf442402ba227954ffb33a2175 (diff)
downloadbugzilla-0ce40b991790cd7695f289b27237b8f2751e5f9b.tar.gz
bugzilla-0ce40b991790cd7695f289b27237b8f2751e5f9b.tar.xz
Bug 1146780 - treat github and mozreview attachments as patches
Diffstat (limited to 'extensions/BMO/template')
-rw-r--r--extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl b/extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl
index 9b2463f78..6982b3338 100644
--- a/extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl
+++ b/extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
#%]
-[% RETURN UNLESS user.in_group("bounty-team")
- && attachment.is_bounty_attachment %]
+[% IF user.in_group("bounty-team") && attachment.is_bounty_attachment %]
+ <span id="bounty_attachment"></span>
+[% END %]
-<span id="bounty_attachment"></span>
+[% IF !attachment.ispatch && attachment.can_review %]
+ &#x0020; |
+ <a href="attachment.cgi?id=[% attachment.id FILTER none %]">Review</a>
+[% END %]