From: lpsolit%gmail.com <> Date: Mon, 13 Aug 2007 21:33:37 +0000 (+0000) Subject: First part of bug 259723 (2nd skin for Bugzilla): Fix the comment header of comment... X-Git-Tag: bugzilla-3.1.2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17cb979c04c087982104da7a803dfd397bedf2f0;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/skins/standard/global.css b/skins/standard/global.css index b729b1aad6..ce18828279 100644 --- a/skins/standard/global.css +++ b/skins/standard/global.css @@ -244,7 +244,10 @@ div#docslinks { margin-bottom: 2em; } -.bz_comment_head { +.bz_first_comment { +} + +.bz_comment_head, .bz_first_comment_head { background-color: #e0e0e0; } .bz_comment_hilite pre { diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 5df295423b..1a8b64c99b 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 %]