diff options
author | Dylan William Hardison <dylan@hardison.net> | 2014-10-10 04:15:21 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2014-10-15 04:02:36 +0200 |
commit | 1030251963d7f4e2c7da6cb0486b36529a558860 (patch) | |
tree | 13db600a1b37f87dab8ca2a6e0c2f25d67775342 /extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl | |
parent | 6d2defefa416c948cb6dc07fe7a3c32566a53cf2 (diff) | |
download | bugzilla-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.tmpl | 11 |
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 – " %] [% 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 %] |