aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2006-10-18 02:58:34 +0000
committerwurblzap%gmail.com <>2006-10-18 02:58:34 +0000
commit84973470df08a269632287e66c52aa30f515ccc1 (patch)
tree68680d1965e213fc622d648e77c49fb42d5282c6 /template/en/default/bug/comments.html.tmpl
parentBug 356924: Remove the old bug_email inbound email interface (diff)
downloadbugzilla-84973470df08a269632287e66c52aa30f515ccc1.tar.gz
bugzilla-84973470df08a269632287e66c52aa30f515ccc1.tar.bz2
bugzilla-84973470df08a269632287e66c52aa30f515ccc1.zip
Bug 321556: Prepare Bugzilla to ship with at least 2 skins.
Patch by Marc Schumann <wurblzap@gmail.com>; r=myk, a=justdave
Diffstat (limited to 'template/en/default/bug/comments.html.tmpl')
-rw-r--r--template/en/default/bug/comments.html.tmpl27
1 files changed, 15 insertions, 12 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl
index a4671d89d..5add6d54f 100644
--- a/template/en/default/bug/comments.html.tmpl
+++ b/template/en/default/bug/comments.html.tmpl
@@ -26,11 +26,15 @@
<script type="text/javascript">
<!--
function updateCommentPrivacy(checkbox, id) {
- var text_elem = document.getElementById('comment_text_'+id);
+ var comment_elem = document.getElementById('comment_text_'+id).parentNode;
if (checkbox.checked) {
- text_elem.parentNode.className='bz_private';
- } else {
- text_elem.parentNode.className='';
+ if (!comment_elem.className.match('bz_private')) {
+ comment_elem.className = comment_elem.className.concat(' bz_private');
+ }
+ }
+ else {
+ comment_elem.className =
+ comment_elem.className.replace(/(\s*|^)bz_private(\s*|$)/, '$2');
}
}
//-->
@@ -85,12 +89,12 @@
[% BLOCK a_comment %]
[% IF NOT comment.isprivate || isinsider %]
- <div [% "class=\"bz_private\" " IF comment.isprivate %]
- [% "class=\"bz_comment_hilite\" " IF marks.$count %]>
+ <div class="bz_comment[% " bz_private" IF comment.isprivate %]
+ [% " bz_comment_hilite" IF marks.$count %]">
[% IF count == description %]
<table>
<tr>
- <td align="left">
+ <th align="left">
<b><a name="c0" href="show_bug.cgi?id=[% bug.bug_id %]#c0">
Description</a>:</b>&nbsp;&nbsp;
[% IF mode == "edit" %]
@@ -98,16 +102,15 @@
addReplyLink(0);
//--></script>
[% END %]
- </td>
+ </th>
<td align="left" width="30%">
<b>Opened:</b> [% bug.creation_ts FILTER time %]
</td>
</tr>
</table>
[% ELSE %]
- <br>
- <span class="bz_comment">
- ------- <i>Comment
+ <span class="bz_comment_head">
+ <span class="comment_rule">-------</span> <i>Comment
<a name="c[% count %]" href="show_bug.cgi?id=[% bug.bug_id %]#c[% count %]">
#[% count %]</a> From
<a href="mailto:[% comment.email FILTER html %]">
@@ -118,7 +121,7 @@
<script type="text/javascript"><!--
addReplyLink([% count %]); //--></script>
[% END %]
- -------
+ <span class="comment_rule">-------</span>
</span>
[% END %]