Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
fb364fe6
Commit
fb364fe6
authored
Dec 13, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
parent
28f6d659
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
99 additions
and
71 deletions
+99
-71
global.css
skins/standard/global.css
+12
-0
comments.html.tmpl
template/en/default/bug/comments.html.tmpl
+17
-5
edit.html.tmpl
template/en/default/bug/edit.html.tmpl
+70
-66
No files found.
skins/standard/global.css
View file @
fb364fe6
...
...
@@ -273,6 +273,10 @@ div#docslinks {
/* Comments */
/************/
.bz_comment_table
td
{
vertical-align
:
top
;
}
.bz_comment
{
margin-bottom
:
2em
;
}
...
...
@@ -303,6 +307,14 @@ div#docslinks {
float
:
right
;
}
.bz_collapse_expand_comments
{
padding
:
0
;
margin
:
0
0
0
1em
;
list-style-type
:
none
;
}
.bz_collapse_expand_comments
li
{
margin-bottom
:
.5em
;
}
.bz_collapse_comment
{
text-decoration
:
none
;
}
...
...
template/en/default/bug/comments.html.tmpl
View file @
fb364fe6
...
...
@@ -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 #%]
[%############################################################################%]
...
...
template/en/default/bug/edit.html.tmpl
View file @
fb364fe6
...
...
@@ -226,75 +226,19 @@
bugid = bug.bug_id
num_attachment_flag_types = bug.num_attachment_flag_types
show_attachment_flags = bug.show_attachment_flags
%]
%]
[%# *** Comments Groups *** %]
[% PROCESS comment_box %]
[%# *** Additional Comments *** %]
<div id="comments">
[% PROCESS bug/comments.html.tmpl
comments = bug.comments
mode = user.id ? "edit" : "show"
%]
</div>
<br>
<table cellpadding="1" cellspacing="1">
<tr>
<td id="comment_status_commit">
<!-- The table keeps the commit button aligned with the box. -->
<a name="add_comment"></a>
[% IF user.id %]
<label for="comment" accesskey="c"><b>Additional <u>C</u>omments</b></label>:
[% IF user.is_insider %]
<input type="checkbox" name="commentprivacy" value="1"
id="newcommentprivacy"
onClick="updateCommentTagControl(this, form)">
<label for="newcommentprivacy">
Make comment private (visible only to members of the
<strong>[% Param('insidergroup') FILTER html %]</strong>
group)
</label>
[% END %]
<table><tr><td>
[% INCLUDE global/textarea.html.tmpl
name = 'comment'
id = 'comment'
minrows = 10
maxrows = 25
cols = constants.COMMENT_COLS
%]
[% Hook.process("after_comment_textarea") %]
<br>
[% PROCESS commit_button id=""%]
<table class="status" cellspacing="0" cellpadding="0">
<tr>
<td class="field_label">
<b><a href="page.cgi?id=fields.html#status">Status</a></b>:
</td>
<td>
<a name="bug_status_bottom"></a>
[% PROCESS bug/knob.html.tmpl %]
</td>
</tr>
</table>
</td></tr></table>
[% ELSE %]
<fieldset>
<legend>Note</legend>
<p>
You need to
<a href="show_bug.cgi?id=
[%- bug.bug_id %]&GoAheadAndLogIn=1">log in</a>
before you can comment on or make changes to this [% terms.bug %].
</p>
</fieldset>
[% END %]
[%# *** Additional Comments *** %]
<hr>
<div id="comments">
[% PROCESS bug/comments.html.tmpl
comments = bug.comments
mode = user.id ? "edit" : "show"
%]
</div>
</td>
</tr>
</table>
</form>
[%############################################################################%]
...
...
@@ -1099,6 +1043,66 @@
[% END %]
[%############################################################################%]
[%# Block for the Additional Comments box #%]
[%############################################################################%]
[% BLOCK comment_box %]
<div class="bz_section_additional_comments">
<a name="add_comment"></a>
[% IF user.id %]
<label for="comment" accesskey="c"><b>Additional
<u>C</u>omments</b></label>:
[% IF user.is_insider %]
<input type="checkbox" name="commentprivacy" value="1"
id="newcommentprivacy"
onClick="updateCommentTagControl(this, form)">
<label for="newcommentprivacy">
Make comment private (visible only to members of the
<strong>[% Param('insidergroup') FILTER html %]</strong> group)
</label>
[% END %]
<!-- This table keeps the submit button aligned with the box. -->
<table><tr><td>
[% INCLUDE global/textarea.html.tmpl
name = 'comment'
id = 'comment'
minrows = 10
maxrows = 25
cols = constants.COMMENT_COLS
%]
[% Hook.process("after_comment_textarea", 'bug/edit.html.tmpl') %]
<br>
[% PROCESS commit_button id=""%]
<table class="status" cellspacing="0" cellpadding="0">
<tr>
<td class="field_label">
<b><a href="page.cgi?id=fields.html#status">Status</a></b>:
</td>
<td>
<a name="bug_status_bottom"></a>
[% PROCESS bug/knob.html.tmpl %]
</td>
</tr>
</table>
</td></tr></table>
[%# For logged-out users %]
[% ELSE %]
<table><tr><td><fieldset>
<legend>Note</legend>
You need to
<a href="show_bug.cgi?id=
[%- bug.bug_id %]&GoAheadAndLogIn=1">log in</a>
before you can comment on or make changes to this [% terms.bug %].
</fieldset></table><tr></td>
[% END %]
</div>
[% END %]
[%############################################################################%]
[%# Block for SELECT fields #%]
[%############################################################################%]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment