From dd10df6857319589e15cc404ad8690cdf54a6768 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 16 Jun 2014 15:57:42 +0800 Subject: Bug 956892: collapsed comments should display tags to indicate the reason for auto-collapsing --- template/en/default/bug/comments.html.tmpl | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'template/en/default/bug') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index ef3131a5e..8effb89da 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -155,6 +155,7 @@ [% RETURN IF comment_text == '' AND (comment.work_time - 0) != 0 AND !user.is_timetracker %]
[% IF comment.count == 0 %] @@ -169,6 +170,9 @@ [% IF mode == "edit" %] + [% IF comment.collapsed %] + + [% END %] [% IF comment_text.search("(?:^>|\n>)") %] [wrap] @@ -184,6 +188,15 @@ [% END %] >reply] [% END %] + [% IF comment.collapsed %] + + [% END %] + + + [% ELSIF comment.collapsed %] + @@ -234,6 +247,14 @@ [%+ comment.creation_ts FILTER time %] + + [% IF comment.collapsed %] + + Comment hidden ([% comment.tags.join(', ') FILTER html %]) + + [% END %]
[% IF user.is_timetracker && @@ -245,8 +266,8 @@ [% IF user.id && Param('comment_taggers_group') %]
+ class="bz_comment_tags + [% " bz_default_hidden" UNLESS comment.tags.size %]"> [% IF comment.tags.size %]