From ddf1fb2abb2a6266ce5a9cc525c84563c154df52 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 9 Jan 2012 18:04:50 +0800 Subject: Bug 685909: add "collapse tbpl comments" --- .../hook/bug/comments-aftercomments.html.tmpl | 32 ++++++++++++++++++++++ .../hook/bug/comments-comment_banner.html.tmpl | 6 ++++ .../en/default/hook/bug/comments-user.html.tmpl | 12 ++++++++ 3 files changed, 50 insertions(+) create mode 100644 extensions/BMO/template/en/default/hook/bug/comments-aftercomments.html.tmpl create mode 100644 extensions/BMO/template/en/default/hook/bug/comments-user.html.tmpl (limited to 'extensions/BMO') diff --git a/extensions/BMO/template/en/default/hook/bug/comments-aftercomments.html.tmpl b/extensions/BMO/template/en/default/hook/bug/comments-aftercomments.html.tmpl new file mode 100644 index 000000000..3a8913be3 --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/comments-aftercomments.html.tmpl @@ -0,0 +1,32 @@ +[%# 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 has_tbpl_comment %] + +[% END %] diff --git a/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl b/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl index fd5477c9f..2ae367456 100644 --- a/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl @@ -5,3 +5,9 @@ subject to Attorney-Client Privilege and Work Product Doctrine. [% END %] + +[%# Needed for collapsing TinderboxPushlog comments %] +[% has_tbpl_comment = 0 %] + diff --git a/extensions/BMO/template/en/default/hook/bug/comments-user.html.tmpl b/extensions/BMO/template/en/default/hook/bug/comments-user.html.tmpl new file mode 100644 index 000000000..62b0c8c4a --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/comments-user.html.tmpl @@ -0,0 +1,12 @@ +[%# 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 comment.author.login_name == 'tbplbot@gmail.com' %] + [% has_tbpl_comment = 1 %] + +[% END %] -- cgit v1.2.3-24-g4f1b