From 907fbcfd19dfa436567bf4a75f566b8f81f43298 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 5 Jun 2015 12:40:01 +0800 Subject: Bug 1146775: implement comment collapse all and by tag --- .../en/default/bug_modal/activity_stream.html.tmpl | 34 +++++++++++++++++----- .../template/en/default/bug_modal/header.html.tmpl | 2 ++ 2 files changed, 29 insertions(+), 7 deletions(-) (limited to 'extensions/BugModal/template/en') diff --git a/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl index 11442985c..4bc860996 100644 --- a/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl @@ -6,9 +6,25 @@ # defined by the Mozilla Public License, v. 2.0. #%] +
+ + +
+ + + [% PROCESS bug/time.html.tmpl; + activity_counter = 0; FOREACH change_set IN bug.activity_stream; '
'; @@ -22,7 +38,8 @@ IF change_set.comment; PROCESS comment_header comment=change_set.comment; ELSE; - PROCESS activity_header activities=change_set.activity id=change_set.id; + activity_counter = activity_counter + 1; + PROCESS activity_header activities=change_set.activity id=activity_counter; END; IF change_set.comment; @@ -95,16 +112,16 @@ data-no="[% comment.count FILTER none %]" >Tag [% END %] - [% END %] - + - +