Skip to content

Commit

Permalink
Bug 1147292: automatic CC when commenting isn't implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
globau committed Mar 31, 2015
1 parent 49bd70a commit b527e84
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,34 @@
<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>
1 change: 1 addition & 0 deletions extensions/BugModal/web/bug_modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ input[type="number"] {

#after-comment-commit-button {
margin-left: -8px;
margin-bottom: 4px;
}

#needinfo_from_autocomplete {
Expand Down

0 comments on commit b527e84

Please sign in to comment.