<https://webkit.org/b/124047>
Original patch by Csaba Osztrogonác.
Reviewed by Daniel Bates.
* template/en/default/attachment/reviewform.html.tmpl:
Add template for "Add me to CC list" by default. This
adds the reviewer to the CC list whether the "Preview"
or "Publish" button is used. Only the "Preview" button
allows the checkbox to be unchecked, though.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214401
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2017-03-25 David Kilzer <ddkilzer@apple.com>
+
+ [Bugzilla] Add a checkbox to add self to the CC list when creating or editing an attachment
+ <https://webkit.org/b/124047>
+
+ Original patch by Csaba Osztrogonác.
+
+ Reviewed by Daniel Bates.
+
+ * template/en/default/attachment/reviewform.html.tmpl:
+ Add template for "Add me to CC list" by default. This
+ adds the reviewer to the CC list whether the "Preview"
+ or "Publish" button is used. Only the "Preview" button
+ allows the checkbox to be unchecked, though.
+
2017-03-23 David Kilzer <ddkilzer@apple.com>
Fix Apache::SizeLimit unshared size limit in mod_perl.pl for bugs.webkit.org
bug_id = attachment.bug_id
flag_types = attachment.flag_types %]<br>
[% END %]
+
+ [% IF NOT attachment.bug.cc || NOT attachment.bug.cc.contains(user.login) %]
+ <input type="checkbox" id="addselfcc" name="addselfcc"
+ [%~ ' checked="checked"'
+ IF user.settings.state_addselfcc.value == 'always'
+ || (!attachment.bug.user.has_any_role
+ && user.settings.state_addselfcc.value == 'cc_unless_role') %]>
+ <label for="addselfcc">Add me to CC list</label>
+ [% END %]
</td>
<td>
[% IF attachment.ispatch %]