summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/comments.html.tmpl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-12-13 23:47:33 +0100
committermkanat%bugzilla.org <>2009-12-13 23:47:33 +0100
commitfb364fe62e0733e9c593db8dd826be94c7d980db (patch)
tree9156517c8845f5fe6a04ce3bab996bb7dfd69db9 /template/en/default/bug/comments.html.tmpl
parent28f6d6593ebd0d0e9d1d01e8de701a68c82854e6 (diff)
downloadbugzilla-fb364fe62e0733e9c593db8dd826be94c7d980db.tar.gz
bugzilla-fb364fe62e0733e9c593db8dd826be94c7d980db.tar.xz
Bug 524254: Make the comment box in bug/edit.html.tmpl into a BLOCK
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'template/en/default/bug/comments.html.tmpl')
-rw-r--r--template/en/default/bug/comments.html.tmpl22
1 files changed, 17 insertions, 5 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl
index 9a04b7147..41b91d79a 100644
--- a/template/en/default/bug/comments.html.tmpl
+++ b/template/en/default/bug/comments.html.tmpl
@@ -120,11 +120,10 @@
[% END %]
[% END %]
-[% IF mode == "edit" %]
- <a href="#" onclick="toggle_all_comments('collapse'); return false;">Collapse All Comments</a> -
- <a href="#" onclick="toggle_all_comments('expand'); return false;">Expand All Comments</a>
- <hr>
-[% END %]
+<!-- This auto-sizes the comments and positions the collapse/expand links
+ to the right. -->
+<table class="bz_comment_table" cellpadding="0" cellspacing="0"><tr>
+<td>
[% FOREACH comment = comments %]
[% IF count >= start_at %]
@@ -139,6 +138,19 @@
#%]
[% Hook.process("aftercomments") %]
+</td>
+<td>
+ [% IF mode == "edit" %]
+ <ul class="bz_collapse_expand_comments">
+ <li><a href="#" onclick="toggle_all_comments('collapse');
+ return false;">Collapse All Comments</a></li>
+ <li><a href="#" onclick="toggle_all_comments('expand');
+ return false;">Expand All Comments</a></li>
+ </ul>
+ [% END %]
+</td>
+</tr></table>
+
[%############################################################################%]
[%# Block for individual comments #%]
[%############################################################################%]