From 228c7bf9ea03a5faafe22f003e5d56da1b7b2162 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 1 May 2012 20:21:56 +0800 Subject: Bug 748629: collapse tbplbot comments by default --- .../default/hook/bug/comments-a_comment-end.html.tmpl | 19 +++++++++++++++++++ .../default/hook/bug/comments-aftercomments.html.tmpl | 14 ++++++++++++-- .../en/default/hook/bug/comments-user.html.tmpl | 12 ------------ 3 files changed, 31 insertions(+), 14 deletions(-) create mode 100644 extensions/BMO/template/en/default/hook/bug/comments-a_comment-end.html.tmpl delete mode 100644 extensions/BMO/template/en/default/hook/bug/comments-user.html.tmpl (limited to 'extensions') 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 %] + +[% END %] 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 index 3a8913be3..d8dc5bba0 100644 --- a/extensions/BMO/template/en/default/hook/bug/comments-aftercomments.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug/comments-aftercomments.html.tmpl @@ -7,6 +7,8 @@ #%] [% IF has_tbpl_comment %] + [% expand_caption = 'Expand TinderboxPushlog Comments' %] + [% collapse_caption = 'Collapse TinderboxPushlog Comments' %] -[% END %] -- cgit v1.2.3-24-g4f1b