Commit 17cb979c authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

First part of bug 259723 (2nd skin for Bugzilla): Fix the comment header of…

First part of bug 259723 (2nd skin for Bugzilla): Fix the comment header of comment 0 to be easily customized - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=glob a=LpSolit
parent 89df9a54
...@@ -244,7 +244,10 @@ div#docslinks { ...@@ -244,7 +244,10 @@ div#docslinks {
margin-bottom: 2em; margin-bottom: 2em;
} }
.bz_comment_head { .bz_first_comment {
}
.bz_comment_head, .bz_first_comment_head {
background-color: #e0e0e0; background-color: #e0e0e0;
} }
.bz_comment_hilite pre { .bz_comment_hilite pre {
......
...@@ -147,30 +147,26 @@ ...@@ -147,30 +147,26 @@
[% BLOCK a_comment %] [% BLOCK a_comment %]
[% IF NOT comment.isprivate || isinsider %] [% IF NOT comment.isprivate || isinsider %]
<div class="bz_comment[% " bz_private" IF comment.isprivate %] <div class="bz_comment[% " bz_private" IF comment.isprivate %]
[% " bz_comment_hilite" IF marks.$count %]"> [% " bz_comment_hilite" IF marks.$count %]
[% " bz_first_comment" IF count == description %]">
[% IF count == description %] [% IF count == description %]
<table> [% class_name = "bz_first_comment_head" %]
<tr> [% comment_label = "" %]
<th align="left"> [% comment_link = "Description" %]
<b><a name="c0" href="show_bug.cgi?id=[% bug.bug_id %]#c0"> [% decoration = "" %]
Description</a>:</b>
[% IF mode == "edit" %]
[%%]<script type="text/javascript"><!--
addCollapseLink(0);
addReplyLink(0);
//--></script>
[% END %]
</th>
<td align="left" width="30%">
<b>Opened:</b> [% bug.creation_ts FILTER time %]
</td>
</tr>
</table>
[% ELSE %] [% ELSE %]
<span class="bz_comment_head"> [% class_name = "bz_comment_head" %]
<span class="comment_rule">-------</span> <i>Comment [% comment_label = "Comment" %]
[% comment_link = "#" _ count %]
[% decoration = '<span class="comment_rule">-------</span>' %]
[% END %]
<span class="[% class_name FILTER html %]">
[%# Do not filter decoration as it's a real HTML tag. No XSS risk. %]
[% decoration FILTER none %]
<i>[% comment_label FILTER html %]
<a name="c[% count %]" href="show_bug.cgi?id=[% bug.bug_id %]#c[% count %]"> <a name="c[% count %]" href="show_bug.cgi?id=[% bug.bug_id %]#c[% count %]">
#[% count %]</a> From [% comment_link FILTER html %]</a> From
<span class="vcard"> <span class="vcard">
<a class="fn email" href="mailto:[% comment.author.email FILTER html %]"> <a class="fn email" href="mailto:[% comment.author.email FILTER html %]">
[% (comment.author.name || comment.author.login) FILTER html %] [% (comment.author.name || comment.author.login) FILTER html %]
...@@ -183,16 +179,16 @@ ...@@ -183,16 +179,16 @@
title="[% group.name FILTER html %] - [% group.description FILTER html %]"> title="[% group.name FILTER html %] - [% group.description FILTER html %]">
[% END %] [% END %]
[%+ comment.time FILTER time %] [%+ comment.time FILTER time %]</i>
</i>
[% IF mode == "edit" %] [% IF mode == "edit" %]
<script type="text/javascript"><!-- <script type="text/javascript"><!--
addCollapseLink([% count %]); addCollapseLink([% count %]);
addReplyLink([% count %]); //--></script> addReplyLink([% count %]); //-->
</script>
[% END %] [% END %]
<span class="comment_rule">-------</span> [%+ decoration FILTER none %]
</span> </span>
[% END %]
[% IF mode == "edit" && isinsider %] [% IF mode == "edit" && isinsider %]
<i> <i>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment