diff options
author | Byron Jones <glob@mozilla.com> | 2014-11-25 06:08:29 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-11-25 06:08:29 +0100 |
commit | 55d148d167630fce08f40e6fcf2ab9def0b9699d (patch) | |
tree | be58dc3c44c5680c4574e3054b3be6ce9e5faebb /extensions/BMO/template | |
parent | 9bb992c0b0607328cc2356cb35b2d439fd7024af (diff) | |
download | bugzilla-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.tmpl | 12 | ||||
-rw-r--r-- | extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl | 2 |
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'); });" |