summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BMO/template')
-rw-r--r--extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl12
-rw-r--r--extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl2
2 files changed, 13 insertions, 1 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
new file mode 100644
index 000000000..9b2463f78
--- /dev/null
+++ b/extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl
@@ -0,0 +1,12 @@
+[%# 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 user.in_group("bounty-team")
+ && attachment.is_bounty_attachment %]
+
+<span id="bounty_attachment"></span>
diff --git a/extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl b/extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl
index b7ce8675e..c9338aaf2 100644
--- a/extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl
+++ b/extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl
@@ -21,7 +21,7 @@
"document.title = document.title.replace(/^" _ terms.Bug _ " /, '');"
%]
[% js_bug_id = bug.bug_id FILTER js %]
-[% IF user.is_insider %]
+[% IF user.in_group("bounty-team") %]
[% javascript = javascript _
"YAHOO.util.Event.onDOMReady(function () { " _
"add_bounty_attachment('$js_bug_id'); });"