summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/hook/bug/comments-a_comment-end.html.tmpl
blob: d6dec42b98c0222d63541dd410d02e0f54a82206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[%# 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.
  #%]

[% IF user.id
      && (comment.author.login_name == 'tbplbot@gmail.com' || comment.author.login_name == 'orangefactor@bots.tld')
%]
  [% has_tbpl_comment = 1 %]
  <script [% script_nonce FILTER none %]>
    var id = [% count FILTER none %];
    tbpl_comment_ids.push(id);
    collapse_comment(
      document.getElementById('comment_link_' + id),
      document.getElementById('comment_text_' + id)
    );
  </script>
[% END %]