Title: [214401] trunk/Websites/bugs.webkit.org
Revision
214401
Author
ddkil...@apple.com
Date
2017-03-25 11:25:47 -0700 (Sat, 25 Mar 2017)

Log Message

[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.

Modified Paths

Diff

Modified: trunk/Websites/bugs.webkit.org/ChangeLog (214400 => 214401)


--- trunk/Websites/bugs.webkit.org/ChangeLog	2017-03-25 17:45:22 UTC (rev 214400)
+++ trunk/Websites/bugs.webkit.org/ChangeLog	2017-03-25 18:25:47 UTC (rev 214401)
@@ -1,3 +1,18 @@
+2017-03-25  David Kilzer  <ddkil...@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  <ddkil...@apple.com>
 
         Fix Apache::SizeLimit unshared size limit in mod_perl.pl for bugs.webkit.org

Modified: trunk/Websites/bugs.webkit.org/template/en/default/attachment/reviewform.html.tmpl (214400 => 214401)


--- trunk/Websites/bugs.webkit.org/template/en/default/attachment/reviewform.html.tmpl	2017-03-25 17:45:22 UTC (rev 214400)
+++ trunk/Websites/bugs.webkit.org/template/en/default/attachment/reviewform.html.tmpl	2017-03-25 18:25:47 UTC (rev 214401)
@@ -86,6 +86,15 @@
                                        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="" me to CC list</label>
+    [% END %]
 </td>
 <td>
 [% IF attachment.ispatch %]
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to