summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2014-10-10 04:15:21 +0200
committerDylan William Hardison <dylan@hardison.net>2014-10-15 04:02:36 +0200
commit1030251963d7f4e2c7da6cb0486b36529a558860 (patch)
tree13db600a1b37f87dab8ca2a6e0c2f25d67775342 /extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl
parent6d2defefa416c948cb6dc07fe7a3c32566a53cf2 (diff)
downloadbugzilla-1030251963d7f4e2c7da6cb0486b36529a558860.tar.gz
bugzilla-1030251963d7f4e2c7da6cb0486b36529a558860.tar.xz
Bug 1062775 - Create a form to create/update bounty tracking tracking attachments
Diffstat (limited to 'extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl')
-rw-r--r--extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl11
1 files changed, 11 insertions, 0 deletions
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 5ab189045..ff2438ffd 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
@@ -8,6 +8,10 @@
[% style_urls.push('extensions/BMO/web/styles/edit_bug.css') %]
[% javascript_urls.push('extensions/BMO/web/js/edit_bug.js') %]
+[% IF user.is_insider %]
+ [% javascript_urls.push('extensions/BMO/web/js/attachment_bounty_form.js') %]
+ [% yui.push('selector') %]
+[% END %]
[% title = "$bug.bug_id &ndash; " %]
[% IF bug.alias != '' %]
[% title = title _ "($bug.alias) " %]
@@ -16,3 +20,10 @@
[% javascript = javascript _
"document.title = document.title.replace(/^" _ terms.Bug _ " /, '');"
%]
+[% js_bug_id = bug.bug_id FILTER js %]
+[% IF user.is_insider %]
+ [% javascript = javascript _
+ "YAHOO.util.Event.onDOMReady(function () { " _
+ "add_bounty_attachment('$js_bug_id'); });"
+ %]
+[% END %]