{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/49878705","id":49878705,"diff_hunk":"@@ -0,0 +1,130 @@\n+<link rel=\"stylesheet\" href='/static/css/pages/remove-contributor-page.css'>\n+<div id=\"removeContributor\" class=\"modal fade\">\n+    <div data-bind=\"css: modalSize\">\n+        <div class=\"modal-content\">\n+            <div class=\"modal-header\">\n+                <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\n+                <h3 class=\"modal-title\" data-bind=\"text:pageTitle\"></h3>\n+            </div>\n+            <div class=\"modal-body\" >\n+\n+                <div data-bind=\"if: canRemoveNode() && !pageChanged()\">\n+                    <!-- remove page -->\n+                    <div data-bind='if:page() === REMOVE'>\n+                        <div class=\"form-group\">\n+                            <span>Do you want to remove <b data-bind=\"text:removeSelf() ? 'yourself' : contributorToRemove()['fullname']\"></b> from\n+                                <b>{{title}}</b>, or from <b>{{title}}</b> and every component in it?</span>\n+                        </div>\n+                        <div id=\"remove-page-radio-buttons\" class=\"col-md-8\" align=\"left\">\n+                            <div class=\"radio\">\n+                                <label><input type=\"radio\" name=\"radioBoxGroup\" data-bind=\"checked:deleteAll, checkedValue: false\" checked>\n+                                    Remove <b data-bind=\"text:removeSelf() ? 'yourself' : contributorToRemove()['fullname']\"></b> from\n+                                    <span class=\"f-w-lg\" data-bind=\"text: title\"></span>","path":"website/templates/project/modal_remove_contributor.mako","position":22,"original_position":22,"commit_id":"86ddfa977ec25217002c8401a49042f1e37c0b17","original_commit_id":"86ddfa977ec25217002c8401a49042f1e37c0b17","user":{"login":"whit537","id":134455,"avatar_url":"https://avatars.githubusercontent.com/u/134455?v=3","gravatar_id":"","url":"https://api.github.com/users/whit537","html_url":"https://github.com/whit537","followers_url":"https://api.github.com/users/whit537/followers","following_url":"https://api.github.com/users/whit537/following{/other_user}","gists_url":"https://api.github.com/users/whit537/gists{/gist_id}","starred_url":"https://api.github.com/users/whit537/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whit537/subscriptions","organizations_url":"https://api.github.com/users/whit537/orgs","repos_url":"https://api.github.com/users/whit537/repos","events_url":"https://api.github.com/users/whit537/events{/privacy}","received_events_url":"https://api.github.com/users/whit537/received_events","type":"User","site_admin":false},"body":"Needs a period at the end of the sentence.\r\n\r\n![screen shot 2016-01-15 at 12 14 46 pm](https://cloud.githubusercontent.com/assets/134455/12359644/959cd0f6-bb81-11e5-9e3e-3365910d3bcc.png)\r\n","created_at":"2016-01-15T17:15:00Z","updated_at":"2016-01-15T17:15:00Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/4799#discussion_r49878705","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4799","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/49878705"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/4799#discussion_r49878705"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4799"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4799","id":54261742,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/4799","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/4799.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/4799.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4799","number":4799,"state":"open","locked":false,"title":"[Feature] Remove Contributors Multiple Components","user":{"login":"billyhunt","id":6232068,"avatar_url":"https://avatars.githubusercontent.com/u/6232068?v=3","gravatar_id":"","url":"https://api.github.com/users/billyhunt","html_url":"https://github.com/billyhunt","followers_url":"https://api.github.com/users/billyhunt/followers","following_url":"https://api.github.com/users/billyhunt/following{/other_user}","gists_url":"https://api.github.com/users/billyhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/billyhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyhunt/subscriptions","organizations_url":"https://api.github.com/users/billyhunt/orgs","repos_url":"https://api.github.com/users/billyhunt/repos","events_url":"https://api.github.com/users/billyhunt/events{/privacy}","received_events_url":"https://api.github.com/users/billyhunt/received_events","type":"User","site_admin":false},"body":"### Purpose\r\n\r\nGive users the choice to remove a user from either the current node or from the current node and all its children.\r\n\r\n#### Current:\r\n![screen shot 2015-11-16 at 10 26 31 am](https://cloud.githubusercontent.com/assets/6232068/11185809/94c4d52a-8c4c-11e5-98c0-d4bfd6ae2c66.png)\r\n\r\n#### Proposed:\r\n\r\n![screen shot 2015-11-16 at 10 53 50 am](https://cloud.githubusercontent.com/assets/6232068/11186787/6a9cb038-8c51-11e5-89ff-896adb3ba799.png)\r\n\r\n![screen shot 2015-11-16 at 10 54 25 am copy](https://cloud.githubusercontent.com/assets/6232068/11186789/6e54ba68-8c51-11e5-8cd7-39194894219f.png)\r\n\r\n### Changes:\r\n\r\n* Delete the user from the given node as a default with a modal.\r\n* If the Admin wants to remove the Contributor from the node AND its children, Open a second modal view, and use the API V2 to list of every component associated with the Contributor to remove.\r\n*  If the Admin clicks \"Remove\" on the second view, use the API v2 to delete those contributors from all child nodes previously listed.","created_at":"2015-12-21T14:29:12Z","updated_at":"2016-01-15T17:15:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d393a8b5b17e6c2eac5ff1349f3395befa8cfbf1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4799/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4799/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4799/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/86ddfa977ec25217002c8401a49042f1e37c0b17","head":{"label":"billyhunt:feature/remove-contributors-multiple-components","ref":"feature/remove-contributors-multiple-components","sha":"86ddfa977ec25217002c8401a49042f1e37c0b17","user":{"login":"billyhunt","id":6232068,"avatar_url":"https://avatars.githubusercontent.com/u/6232068?v=3","gravatar_id":"","url":"https://api.github.com/users/billyhunt","html_url":"https://github.com/billyhunt","followers_url":"https://api.github.com/users/billyhunt/followers","following_url":"https://api.github.com/users/billyhunt/following{/other_user}","gists_url":"https://api.github.com/users/billyhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/billyhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyhunt/subscriptions","organizations_url":"https://api.github.com/users/billyhunt/orgs","repos_url":"https://api.github.com/users/billyhunt/repos","events_url":"https://api.github.com/users/billyhunt/events{/privacy}","received_events_url":"https://api.github.com/users/billyhunt/received_events","type":"User","site_admin":false},"repo":{"id":33544748,"name":"osf.io","full_name":"billyhunt/osf.io","owner":{"login":"billyhunt","id":6232068,"avatar_url":"https://avatars.githubusercontent.com/u/6232068?v=3","gravatar_id":"","url":"https://api.github.com/users/billyhunt","html_url":"https://github.com/billyhunt","followers_url":"https://api.github.com/users/billyhunt/followers","following_url":"https://api.github.com/users/billyhunt/following{/other_user}","gists_url":"https://api.github.com/users/billyhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/billyhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyhunt/subscriptions","organizations_url":"https://api.github.com/users/billyhunt/orgs","repos_url":"https://api.github.com/users/billyhunt/repos","events_url":"https://api.github.com/users/billyhunt/events{/privacy}","received_events_url":"https://api.github.com/users/billyhunt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/billyhunt/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/billyhunt/osf.io","forks_url":"https://api.github.com/repos/billyhunt/osf.io/forks","keys_url":"https://api.github.com/repos/billyhunt/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/billyhunt/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/billyhunt/osf.io/teams","hooks_url":"https://api.github.com/repos/billyhunt/osf.io/hooks","issue_events_url":"https://api.github.com/repos/billyhunt/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/billyhunt/osf.io/events","assignees_url":"https://api.github.com/repos/billyhunt/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/billyhunt/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/billyhunt/osf.io/tags","blobs_url":"https://api.github.com/repos/billyhunt/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/billyhunt/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/billyhunt/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/billyhunt/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/billyhunt/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/billyhunt/osf.io/languages","stargazers_url":"https://api.github.com/repos/billyhunt/osf.io/stargazers","contributors_url":"https://api.github.com/repos/billyhunt/osf.io/contributors","subscribers_url":"https://api.github.com/repos/billyhunt/osf.io/subscribers","subscription_url":"https://api.github.com/repos/billyhunt/osf.io/subscription","commits_url":"https://api.github.com/repos/billyhunt/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/billyhunt/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/billyhunt/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/billyhunt/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/billyhunt/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/billyhunt/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/billyhunt/osf.io/merges","archive_url":"https://api.github.com/repos/billyhunt/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/billyhunt/osf.io/downloads","issues_url":"https://api.github.com/repos/billyhunt/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/billyhunt/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/billyhunt/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/billyhunt/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/billyhunt/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/billyhunt/osf.io/releases{/id}","created_at":"2015-04-07T13:28:52Z","updated_at":"2015-05-06T16:08:02Z","pushed_at":"2016-01-15T16:49:31Z","git_url":"git://github.com/billyhunt/osf.io.git","ssh_url":"git@github.com:billyhunt/osf.io.git","clone_url":"https://github.com/billyhunt/osf.io.git","svn_url":"https://github.com/billyhunt/osf.io","homepage":"http://osf.io","size":119164,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"95f3328560acf9061ddf448620ea1e3e728f7cf8","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","created_at":"2013-05-21T15:53:37Z","updated_at":"2016-01-14T03:51:37Z","pushed_at":"2016-01-15T16:49:34Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":263640,"stargazers_count":179,"watchers_count":179,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":142,"mirror_url":null,"open_issues_count":314,"forks":142,"open_issues":314,"watchers":179,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4799"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/4799"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4799"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4799/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4799/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4799/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/86ddfa977ec25217002c8401a49042f1e37c0b17"}}}}