From 7d33443002e5da146e506f92600ff456571ac84a Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 11 Dec 2013 04:30:11 +0800 Subject: Bug 942725: backport bug 793963 to bmo (add the ability to tag comments with arbitrary tags) --- template/en/default/bug/comments.html.tmpl | 54 ++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 14 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 773e6a485..e0226257e 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -133,10 +133,13 @@ [% IF mode == "edit" %] [% END %] @@ -151,15 +154,15 @@ [% comment_text = comment.body_full %] [% RETURN IF comment_text == '' AND (comment.work_time - 0) != 0 AND !user.is_timetracker %] -
- [% IF count == description %] +
+ [% IF comment.count == 0 %] [% class_name = "bz_first_comment_head" %] [% comment_label = "Description" %] [% ELSE %] [% class_name = "bz_comment_head" %] - [% comment_label = "Comment " _ count %] + [% comment_label = "Comment " _ comment.count %] [% END %]
@@ -168,17 +171,21 @@ [% IF comment_text.search("(?:^>|\n>)") %] [wrap] + onclick="return toggleCommentWrap(this, [% comment.count %])">wrap] [% END %] [% IF bug.check_can_change_field('longdesc', 1, 0) %] + [% IF user.can_tag_comments %] + [tag] + [% END %] [reply] [% END %] - [% END %] @@ -190,7 +197,7 @@
@@ -198,7 +205,7 @@ + href="show_bug.cgi?id=[% bug.bug_id %]#c[% comment.count %]"> [%- comment_label FILTER html %] @@ -236,11 +243,30 @@ [% PROCESS formattimeunit time_unit=comment.work_time %] [% END %] + [% IF user.id && Param('comment_taggers_group') %] +
+ + [% IF comment.tags.size %] + + [% END %] + +
+ [% END %] + [%# Don't indent the
 block, since then the spaces are displayed in the
   # generated HTML
   #%]
-
+
   [%- comment_text FILTER quoteUrls(bug, comment) -%]
 
-- cgit v1.2.3-24-g4f1b