{"action":"created","comment":{"url":"https://api.github.com/repos/gitcoinco/web/pulls/comments/190632498","pull_request_review_id":123048322,"id":190632498,"diff_hunk":"@@ -41,13 +52,35 @@ <h5>{% trans \"Basic Preferences\" %}</h5>\n         </div>\n       </div>\n       {% csrf_token %}\n-      <input class='button button--primary' type='submit' name='submit' value=\"Go\">\n+      <input class='button button--primary' type='submit' name='submit' value=\"Save\">\n     </form>\n   </div>\n {% endblock %}\n \n {% block scripts %}\n <script>\n+    $(\"document\").ready(function(){\n+        // select / deselect all\n+        $(\"#select_all\").click(function(e){\n+            e.preventDefault();\n+            if($(this).data('direction') == '+'){\n+                $(\".priv_checkbox\").prop('checked', true);\n+                $(this).text('[Deselect All]');\n+                $(this).data('direction','-');\n+            } else {\n+                $(\".priv_checkbox\").prop('checked', false);\n+                $(this).text('[Select All]');\n+                $(this).data('direction','+');\n+            }\n+        });\n+\n+        // suppression preferences form\n+        var suppression_preferences = {{suppression_preferences|safe}};","path":"app/retail/templates/settings/email.html","position":82,"original_position":82,"commit_id":"d7a304cde44625b2ef7a259177332a289cf6629f","original_commit_id":"d7a304cde44625b2ef7a259177332a289cf6629f","user":{"login":"SaptakS","id":9530293,"avatar_url":"https://avatars2.githubusercontent.com/u/9530293?v=4","gravatar_id":"","url":"https://api.github.com/users/SaptakS","html_url":"https://github.com/SaptakS","followers_url":"https://api.github.com/users/SaptakS/followers","following_url":"https://api.github.com/users/SaptakS/following{/other_user}","gists_url":"https://api.github.com/users/SaptakS/gists{/gist_id}","starred_url":"https://api.github.com/users/SaptakS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaptakS/subscriptions","organizations_url":"https://api.github.com/users/SaptakS/orgs","repos_url":"https://api.github.com/users/SaptakS/repos","events_url":"https://api.github.com/users/SaptakS/events{/privacy}","received_events_url":"https://api.github.com/users/SaptakS/received_events","type":"User","site_admin":false},"body":"Format in `{{ var }}`","created_at":"2018-05-24T15:34:00Z","updated_at":"2018-05-24T15:39:14Z","html_url":"https://github.com/gitcoinco/web/pull/1247#discussion_r190632498","pull_request_url":"https://api.github.com/repos/gitcoinco/web/pulls/1247","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/comments/190632498"},"html":{"href":"https://github.com/gitcoinco/web/pull/1247#discussion_r190632498"},"pull_request":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/1247"}}},"pull_request":{"url":"https://api.github.com/repos/gitcoinco/web/pulls/1247","id":190126073,"html_url":"https://github.com/gitcoinco/web/pull/1247","diff_url":"https://github.com/gitcoinco/web/pull/1247.diff","patch_url":"https://github.com/gitcoinco/web/pull/1247.patch","issue_url":"https://api.github.com/repos/gitcoinco/web/issues/1247","number":1247,"state":"open","locked":false,"title":"Email Preferences at a much more granular level","user":{"login":"owocki","id":513929,"avatar_url":"https://avatars2.githubusercontent.com/u/513929?v=4","gravatar_id":"","url":"https://api.github.com/users/owocki","html_url":"https://github.com/owocki","followers_url":"https://api.github.com/users/owocki/followers","following_url":"https://api.github.com/users/owocki/following{/other_user}","gists_url":"https://api.github.com/users/owocki/gists{/gist_id}","starred_url":"https://api.github.com/users/owocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owocki/subscriptions","organizations_url":"https://api.github.com/users/owocki/orgs","repos_url":"https://api.github.com/users/owocki/repos","events_url":"https://api.github.com/users/owocki/events{/privacy}","received_events_url":"https://api.github.com/users/owocki/received_events","type":"User","site_admin":false},"body":"##### Description\r\n<!-- A description on what this PR aims to solve -->\r\nEmail Preferences at a much more granular level\r\n\r\nRemoves (or rather, migrates) email 'level's and adds a much more granular email preference data structure.\r\n\r\n![screen recording 2018-05-23 at 04 46 pm](https://user-images.githubusercontent.com/513929/40455181-0d88ba72-5ea9-11e8-8d55-aea171cf1acb.gif)\r\n\r\n\r\n##### Checklist\r\n<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->\r\n\r\n- [x] linter status: 100% pass\r\n- [x] changes don't break existing behavior\r\n- [x] commit message follows [commit guidelines](https://github.com/gitcoinco/web/blob/master/docs/CONTRIBUTING.md#step-4-commit)\r\n\r\n##### Affected core subsystem(s)\r\n<!-- Provide affected core subsystem(s) (like doc, ui, crypto, etc). -->\r\nemail settings\r\n\r\n##### Testing\r\n<!-- Why should the PR reviewer trust that this change doesn't break anything? How have you tested this change? -->\r\n\r\n##### Refers/Fixes\r\n<!--\r\n  Link to an issue if applicable. For example:\r\n  If your PR fixes an issue  -> Fixes: #102\r\n  If your PR refers an issue -> Refs: #101\r\n-->\r\nFixes https://github.com/gitcoinco/web/issues/1241\r\n","created_at":"2018-05-23T22:48:18Z","updated_at":"2018-05-24T15:39:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"072cd38c368e2b839203ab30848348685708aaf8","assignee":{"login":"owocki","id":513929,"avatar_url":"https://avatars2.githubusercontent.com/u/513929?v=4","gravatar_id":"","url":"https://api.github.com/users/owocki","html_url":"https://github.com/owocki","followers_url":"https://api.github.com/users/owocki/followers","following_url":"https://api.github.com/users/owocki/following{/other_user}","gists_url":"https://api.github.com/users/owocki/gists{/gist_id}","starred_url":"https://api.github.com/users/owocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owocki/subscriptions","organizations_url":"https://api.github.com/users/owocki/orgs","repos_url":"https://api.github.com/users/owocki/repos","events_url":"https://api.github.com/users/owocki/events{/privacy}","received_events_url":"https://api.github.com/users/owocki/received_events","type":"User","site_admin":false},"assignees":[{"login":"owocki","id":513929,"avatar_url":"https://avatars2.githubusercontent.com/u/513929?v=4","gravatar_id":"","url":"https://api.github.com/users/owocki","html_url":"https://github.com/owocki","followers_url":"https://api.github.com/users/owocki/followers","following_url":"https://api.github.com/users/owocki/following{/other_user}","gists_url":"https://api.github.com/users/owocki/gists{/gist_id}","starred_url":"https://api.github.com/users/owocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owocki/subscriptions","organizations_url":"https://api.github.com/users/owocki/orgs","repos_url":"https://api.github.com/users/owocki/repos","events_url":"https://api.github.com/users/owocki/events{/privacy}","received_events_url":"https://api.github.com/users/owocki/received_events","type":"User","site_admin":false},{"login":"mbeacom","id":7315957,"avatar_url":"https://avatars0.githubusercontent.com/u/7315957?v=4","gravatar_id":"","url":"https://api.github.com/users/mbeacom","html_url":"https://github.com/mbeacom","followers_url":"https://api.github.com/users/mbeacom/followers","following_url":"https://api.github.com/users/mbeacom/following{/other_user}","gists_url":"https://api.github.com/users/mbeacom/gists{/gist_id}","starred_url":"https://api.github.com/users/mbeacom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbeacom/subscriptions","organizations_url":"https://api.github.com/users/mbeacom/orgs","repos_url":"https://api.github.com/users/mbeacom/repos","events_url":"https://api.github.com/users/mbeacom/events{/privacy}","received_events_url":"https://api.github.com/users/mbeacom/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":820451824,"url":"https://api.github.com/repos/gitcoinco/web/labels/in%20progress","name":"in progress","color":"4abc40","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/gitcoinco/web/pulls/1247/commits","review_comments_url":"https://api.github.com/repos/gitcoinco/web/pulls/1247/comments","review_comment_url":"https://api.github.com/repos/gitcoinco/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gitcoinco/web/issues/1247/comments","statuses_url":"https://api.github.com/repos/gitcoinco/web/statuses/d7a304cde44625b2ef7a259177332a289cf6629f","head":{"label":"gitcoinco:GDPR-emailprefs","ref":"GDPR-emailprefs","sha":"d7a304cde44625b2ef7a259177332a289cf6629f","user":{"login":"gitcoinco","id":30044474,"avatar_url":"https://avatars1.githubusercontent.com/u/30044474?v=4","gravatar_id":"","url":"https://api.github.com/users/gitcoinco","html_url":"https://github.com/gitcoinco","followers_url":"https://api.github.com/users/gitcoinco/followers","following_url":"https://api.github.com/users/gitcoinco/following{/other_user}","gists_url":"https://api.github.com/users/gitcoinco/gists{/gist_id}","starred_url":"https://api.github.com/users/gitcoinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitcoinco/subscriptions","organizations_url":"https://api.github.com/users/gitcoinco/orgs","repos_url":"https://api.github.com/users/gitcoinco/repos","events_url":"https://api.github.com/users/gitcoinco/events{/privacy}","received_events_url":"https://api.github.com/users/gitcoinco/received_events","type":"Organization","site_admin":false},"repo":{"id":96767206,"name":"web","full_name":"gitcoinco/web","owner":{"login":"gitcoinco","id":30044474,"avatar_url":"https://avatars1.githubusercontent.com/u/30044474?v=4","gravatar_id":"","url":"https://api.github.com/users/gitcoinco","html_url":"https://github.com/gitcoinco","followers_url":"https://api.github.com/users/gitcoinco/followers","following_url":"https://api.github.com/users/gitcoinco/following{/other_user}","gists_url":"https://api.github.com/users/gitcoinco/gists{/gist_id}","starred_url":"https://api.github.com/users/gitcoinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitcoinco/subscriptions","organizations_url":"https://api.github.com/users/gitcoinco/orgs","repos_url":"https://api.github.com/users/gitcoinco/repos","events_url":"https://api.github.com/users/gitcoinco/events{/privacy}","received_events_url":"https://api.github.com/users/gitcoinco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gitcoinco/web","description":"Grow Open Source","fork":false,"url":"https://api.github.com/repos/gitcoinco/web","forks_url":"https://api.github.com/repos/gitcoinco/web/forks","keys_url":"https://api.github.com/repos/gitcoinco/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitcoinco/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitcoinco/web/teams","hooks_url":"https://api.github.com/repos/gitcoinco/web/hooks","issue_events_url":"https://api.github.com/repos/gitcoinco/web/issues/events{/number}","events_url":"https://api.github.com/repos/gitcoinco/web/events","assignees_url":"https://api.github.com/repos/gitcoinco/web/assignees{/user}","branches_url":"https://api.github.com/repos/gitcoinco/web/branches{/branch}","tags_url":"https://api.github.com/repos/gitcoinco/web/tags","blobs_url":"https://api.github.com/repos/gitcoinco/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitcoinco/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitcoinco/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitcoinco/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitcoinco/web/statuses/{sha}","languages_url":"https://api.github.com/repos/gitcoinco/web/languages","stargazers_url":"https://api.github.com/repos/gitcoinco/web/stargazers","contributors_url":"https://api.github.com/repos/gitcoinco/web/contributors","subscribers_url":"https://api.github.com/repos/gitcoinco/web/subscribers","subscription_url":"https://api.github.com/repos/gitcoinco/web/subscription","commits_url":"https://api.github.com/repos/gitcoinco/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitcoinco/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitcoinco/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitcoinco/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitcoinco/web/contents/{+path}","compare_url":"https://api.github.com/repos/gitcoinco/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitcoinco/web/merges","archive_url":"https://api.github.com/repos/gitcoinco/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitcoinco/web/downloads","issues_url":"https://api.github.com/repos/gitcoinco/web/issues{/number}","pulls_url":"https://api.github.com/repos/gitcoinco/web/pulls{/number}","milestones_url":"https://api.github.com/repos/gitcoinco/web/milestones{/number}","notifications_url":"https://api.github.com/repos/gitcoinco/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitcoinco/web/labels{/name}","releases_url":"https://api.github.com/repos/gitcoinco/web/releases{/id}","deployments_url":"https://api.github.com/repos/gitcoinco/web/deployments","created_at":"2017-07-10T10:53:45Z","updated_at":"2018-05-24T15:27:47Z","pushed_at":"2018-05-24T15:28:32Z","git_url":"git://github.com/gitcoinco/web.git","ssh_url":"git@github.com:gitcoinco/web.git","clone_url":"https://github.com/gitcoinco/web.git","svn_url":"https://github.com/gitcoinco/web","homepage":"https://gitcoin.co","size":250793,"stargazers_count":313,"watchers_count":313,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":181,"mirror_url":null,"archived":false,"open_issues_count":379,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":181,"open_issues":379,"watchers":313,"default_branch":"master"}},"base":{"label":"gitcoinco:master","ref":"master","sha":"61b7ecc0d7c1a75685dc8f7ee8b31421cd7a3bb2","user":{"login":"gitcoinco","id":30044474,"avatar_url":"https://avatars1.githubusercontent.com/u/30044474?v=4","gravatar_id":"","url":"https://api.github.com/users/gitcoinco","html_url":"https://github.com/gitcoinco","followers_url":"https://api.github.com/users/gitcoinco/followers","following_url":"https://api.github.com/users/gitcoinco/following{/other_user}","gists_url":"https://api.github.com/users/gitcoinco/gists{/gist_id}","starred_url":"https://api.github.com/users/gitcoinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitcoinco/subscriptions","organizations_url":"https://api.github.com/users/gitcoinco/orgs","repos_url":"https://api.github.com/users/gitcoinco/repos","events_url":"https://api.github.com/users/gitcoinco/events{/privacy}","received_events_url":"https://api.github.com/users/gitcoinco/received_events","type":"Organization","site_admin":false},"repo":{"id":96767206,"name":"web","full_name":"gitcoinco/web","owner":{"login":"gitcoinco","id":30044474,"avatar_url":"https://avatars1.githubusercontent.com/u/30044474?v=4","gravatar_id":"","url":"https://api.github.com/users/gitcoinco","html_url":"https://github.com/gitcoinco","followers_url":"https://api.github.com/users/gitcoinco/followers","following_url":"https://api.github.com/users/gitcoinco/following{/other_user}","gists_url":"https://api.github.com/users/gitcoinco/gists{/gist_id}","starred_url":"https://api.github.com/users/gitcoinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitcoinco/subscriptions","organizations_url":"https://api.github.com/users/gitcoinco/orgs","repos_url":"https://api.github.com/users/gitcoinco/repos","events_url":"https://api.github.com/users/gitcoinco/events{/privacy}","received_events_url":"https://api.github.com/users/gitcoinco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gitcoinco/web","description":"Grow Open Source","fork":false,"url":"https://api.github.com/repos/gitcoinco/web","forks_url":"https://api.github.com/repos/gitcoinco/web/forks","keys_url":"https://api.github.com/repos/gitcoinco/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitcoinco/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitcoinco/web/teams","hooks_url":"https://api.github.com/repos/gitcoinco/web/hooks","issue_events_url":"https://api.github.com/repos/gitcoinco/web/issues/events{/number}","events_url":"https://api.github.com/repos/gitcoinco/web/events","assignees_url":"https://api.github.com/repos/gitcoinco/web/assignees{/user}","branches_url":"https://api.github.com/repos/gitcoinco/web/branches{/branch}","tags_url":"https://api.github.com/repos/gitcoinco/web/tags","blobs_url":"https://api.github.com/repos/gitcoinco/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitcoinco/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitcoinco/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitcoinco/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitcoinco/web/statuses/{sha}","languages_url":"https://api.github.com/repos/gitcoinco/web/languages","stargazers_url":"https://api.github.com/repos/gitcoinco/web/stargazers","contributors_url":"https://api.github.com/repos/gitcoinco/web/contributors","subscribers_url":"https://api.github.com/repos/gitcoinco/web/subscribers","subscription_url":"https://api.github.com/repos/gitcoinco/web/subscription","commits_url":"https://api.github.com/repos/gitcoinco/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitcoinco/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitcoinco/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitcoinco/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitcoinco/web/contents/{+path}","compare_url":"https://api.github.com/repos/gitcoinco/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitcoinco/web/merges","archive_url":"https://api.github.com/repos/gitcoinco/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitcoinco/web/downloads","issues_url":"https://api.github.com/repos/gitcoinco/web/issues{/number}","pulls_url":"https://api.github.com/repos/gitcoinco/web/pulls{/number}","milestones_url":"https://api.github.com/repos/gitcoinco/web/milestones{/number}","notifications_url":"https://api.github.com/repos/gitcoinco/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitcoinco/web/labels{/name}","releases_url":"https://api.github.com/repos/gitcoinco/web/releases{/id}","deployments_url":"https://api.github.com/repos/gitcoinco/web/deployments","created_at":"2017-07-10T10:53:45Z","updated_at":"2018-05-24T15:27:47Z","pushed_at":"2018-05-24T15:28:32Z","git_url":"git://github.com/gitcoinco/web.git","ssh_url":"git@github.com:gitcoinco/web.git","clone_url":"https://github.com/gitcoinco/web.git","svn_url":"https://github.com/gitcoinco/web","homepage":"https://gitcoin.co","size":250793,"stargazers_count":313,"watchers_count":313,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":181,"mirror_url":null,"archived":false,"open_issues_count":379,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":181,"open_issues":379,"watchers":313,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/1247"},"html":{"href":"https://github.com/gitcoinco/web/pull/1247"},"issue":{"href":"https://api.github.com/repos/gitcoinco/web/issues/1247"},"comments":{"href":"https://api.github.com/repos/gitcoinco/web/issues/1247/comments"},"review_comments":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/1247/comments"},"review_comment":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/1247/commits"},"statuses":{"href":"https://api.github.com/repos/gitcoinco/web/statuses/d7a304cde44625b2ef7a259177332a289cf6629f"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"SaptakS"}}