From 17cb979c04c087982104da7a803dfd397bedf2f0 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 13 Aug 2007 21:33:37 +0000 Subject: First part of bug 259723 (2nd skin for Bugzilla): Fix the comment header of comment 0 to be easily customized - Patch by Frédéric Buclin r=glob a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/bug/comments.html.tmpl | 84 ++++++++++++++---------------- 1 file changed, 40 insertions(+), 44 deletions(-) (limited to 'template') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 5df295423..1a8b64c99 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -147,53 +147,49 @@ [% BLOCK a_comment %] [% IF NOT comment.isprivate || isinsider %]
+ [% " bz_comment_hilite" IF marks.$count %] + [% " bz_first_comment" IF count == description %]"> [% IF count == description %] - - - - - -
- - Description: - [% IF mode == "edit" %] - [%%] - [% END %] - - Opened: [% bug.creation_ts FILTER time %] -
+ [% class_name = "bz_first_comment_head" %] + [% comment_label = "" %] + [% comment_link = "Description" %] + [% decoration = "" %] [% ELSE %] - - ------- Comment - - #[% count %] From - - - - [% FOREACH group = comment.author.direct_group_membership %] - [% NEXT UNLESS group.icon_url %] - [% group.name FILTER html %] - [% END %] - - [%+ comment.time FILTER time %] - - [% IF mode == "edit" %] - - [% END %] - ------- - + [% class_name = "bz_comment_head" %] + [% comment_label = "Comment" %] + [% comment_link = "#" _ count %] + [% decoration = '-------' %] [% END %] - + + + [%# Do not filter decoration as it's a real HTML tag. No XSS risk. %] + [% decoration FILTER none %] + [% comment_label FILTER html %] + + [% comment_link FILTER html %] From + + + + [% FOREACH group = comment.author.direct_group_membership %] + [% NEXT UNLESS group.icon_url %] + [% group.name FILTER html %] + [% END %] + + [%+ comment.time FILTER time %] + + [% IF mode == "edit" %] + + [% END %] + [%+ decoration FILTER none %] + + [% IF mode == "edit" && isinsider %]