blob: f6c3bb3fa53956441a9a0c284083cd50dd71ed17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
[%# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[%#
# comment: comment object
# bug: bug object
#%]
<div id="add-comment">
<div id="add-comment-label">Add Comment:</div>
[% IF user.is_insider && bug.check_can_change_field('longdesc', 0, 1) %]
<div id="add-comment-private"
title="Make comment visible only to members of the '[% Param('insidergroup') FILTER html %]' group"
>
<input type="checkbox" name="comment_is_private" id="add-comment-private-cb"
value="1" comment_id="[% comment.count FILTER none %]">
<label for="add-comment-private-cb">Private</label>
</div>
[% END %]
<textarea rows="5" cols="80" name="comment" id="comment"></textarea>
<div id="after-comment-commit-button">
[% Hook.process("after_comment_commit_button", 'bug/edit.html.tmpl') %]
[% IF NOT bug.cc || NOT bug.cc.contains(user.login) %]
[%
IF user.settings.state_addselfcc.value == 'always';
check_add_self = 1;
ELSIF user.settings.state_addselfcc.value == 'cc_unless_role';
check_add_self = !(
bug.user.isreporter
|| bug.assigned_to.id == user.id
|| (bug.qa_contact && bug.qa_contact.id == user.id)
);
ELSE;
check_add_self = 0;
END;
%]
[%# this is in a table to match the alignment of the added-by-extensions
checkboxes (needinfo, restrict-comments) %]
<table>
<tr>
<td>
<input type="checkbox" name="addselfcc" id="add-self-cc"
[%~ " checked" IF check_add_self %]>
</td>
<td>
<label for="add-self-cc">Add me to CC list (follow this [% terms.bug %])</label>
</td>
</tr>
</table>
[% END %]
</div>
</div>
|