summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl
blob: c9338aaf253f1847fc2888cebfdd327b74da760b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[%# 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.
  #%]

[% style_urls.push('extensions/BMO/web/styles/edit_bug.css') %]
[% javascript_urls.push('extensions/BMO/web/js/edit_bug.js') %]
[% IF user.in_group('bounty-team') %]
  [% 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) " %]
[% END %]
[% title = title _ filtered_desc %]
[% javascript = javascript _ 
                "document.title = document.title.replace(/^" _ terms.Bug _ " /, '');"
%]
[% js_bug_id = bug.bug_id FILTER js %]
[% IF user.in_group("bounty-team") %]
  [% javascript = javascript _
                  "YAHOO.util.Event.onDOMReady(function () { " _
                  "add_bounty_attachment('$js_bug_id'); });"
  %]
[% END %]