From 384a1c6564bda9386c7488cb299289c3fbb81f3c Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 16 Jun 2014 15:46:58 +0800 Subject: Bug 956892: collapsed comments should display tags to indicate the reason for auto-collapsing r=gerv,a=sgreen --- template/en/default/bug/comments.html.tmpl | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'template/en/default/bug/comments.html.tmpl') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index ea3cfd0de..314269227 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -102,6 +102,7 @@ [% RETURN IF comment_text == '' AND (comment.work_time - 0) != 0 AND !user.is_timetracker %]
[% IF comment.count == 0 %] @@ -115,6 +116,9 @@
[% IF mode == "edit" %] + [% IF comment.collapsed %] + + [% END %] [% IF bug.check_can_change_field('longdesc', 0, 1) %] [% IF user.can_tag_comments %] [reply] [% END %] + [% IF comment.collapsed %] + + [% END %] + + + [% ELSIF comment.collapsed %] + @@ -173,6 +186,14 @@ [%+ comment.creation_ts FILTER time %] + + [% IF comment.collapsed %] + + Comment hidden ([% comment.tags.join(', ') FILTER html %]) + + [% END %]
[% IF user.is_timetracker && @@ -184,7 +205,7 @@ [% IF user.id && Param('comment_taggers_group') %]
+ class="bz_comment_tags"> [% IF comment.tags.size %] @@ -205,7 +226,9 @@ # generated HTML #%]
+  [% IF mode == "edit" || comment.collapsed %]
+    id="comment_text_[% comment.count FILTER none %]"
+  [% END %]>
   [%- comment_text FILTER quoteUrls(bug, comment) -%]
 
-- cgit v1.2.3-24-g4f1b