diff options
author | Byron Jones <bjones@mozilla.com> | 2012-05-01 14:21:56 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-05-01 14:21:56 +0200 |
commit | 228c7bf9ea03a5faafe22f003e5d56da1b7b2162 (patch) | |
tree | d6e510fb195a9a197739e8b6996244bd65b14ea2 /extensions/BMO/template/en/default/hook/bug/comments-a_comment-end.html.tmpl | |
parent | 136caf50f2569b380879cc68d3dc10142c8e4f84 (diff) | |
download | bugzilla-228c7bf9ea03a5faafe22f003e5d56da1b7b2162.tar.gz bugzilla-228c7bf9ea03a5faafe22f003e5d56da1b7b2162.tar.xz |
Bug 748629: collapse tbplbot comments by default
Diffstat (limited to 'extensions/BMO/template/en/default/hook/bug/comments-a_comment-end.html.tmpl')
-rw-r--r-- | extensions/BMO/template/en/default/hook/bug/comments-a_comment-end.html.tmpl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/hook/bug/comments-a_comment-end.html.tmpl b/extensions/BMO/template/en/default/hook/bug/comments-a_comment-end.html.tmpl new file mode 100644 index 000000000..caf7acca7 --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/comments-a_comment-end.html.tmpl @@ -0,0 +1,19 @@ +[%# 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' %] + [% has_tbpl_comment = 1 %] + <script> + var id = [% count FILTER none %]; + tbpl_comment_ids.push(id); + collapse_comment( + document.getElementById('comment_link_' + id), + document.getElementById('comment_text_' + id) + ); + </script> +[% END %] |