summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/hook
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BMO/template/en/default/hook')
-rw-r--r--extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl11
-rw-r--r--extensions/BMO/template/en/default/hook/global/user-error-errors.html.tmpl4
2 files changed, 15 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 %]
diff --git a/extensions/BMO/template/en/default/hook/global/user-error-errors.html.tmpl b/extensions/BMO/template/en/default/hook/global/user-error-errors.html.tmpl
index aaf23fff5..9caf9bd29 100644
--- a/extensions/BMO/template/en/default/hook/global/user-error-errors.html.tmpl
+++ b/extensions/BMO/template/en/default/hook/global/user-error-errors.html.tmpl
@@ -37,4 +37,8 @@
[% title = "Too Many Bugs" %]
Too many [% terms.bugs %] matched your selection criteria.
+[% ELSIF error == "bounty_attachment_missing_reporter" %]
+ [% title = "Missing Reporter" %]
+ You must provide an email address for a bounty attachment.
+
[% END %]