summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-11-25 06:08:29 +0100
committerByron Jones <glob@mozilla.com>2014-11-25 06:08:29 +0100
commit55d148d167630fce08f40e6fcf2ab9def0b9699d (patch)
treebe58dc3c44c5680c4574e3054b3be6ce9e5faebb /extensions/BMO/template
parent9bb992c0b0607328cc2356cb35b2d439fd7024af (diff)
downloadbugzilla-55d148d167630fce08f40e6fcf2ab9def0b9699d.tar.gz
bugzilla-55d148d167630fce08f40e6fcf2ab9def0b9699d.tar.xz
Bug 1103837: Bug Bounty Entry Form no longer edits bounty attachment description
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'); });"