summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl
blob: c49d06b7399aa410ce30f9a9bf41a987a138dac1 (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
30
[%# 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 != '' %]
  [% filtered_alias = bug.alias FILTER html %]
  [% title = title _ "($filtered_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 %]