{"action":"created","comment":{"url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/comments/40546339","id":40546339,"diff_hunk":"@@ -0,0 +1,59 @@\n+var React = require('react'),\n+    _ = require('underscore'),\n+    marked = require('marked');\n+\n+marked.setOptions({\n+    renderer: new marked.Renderer(),\n+    gfm: true,\n+    tables: true,\n+    breaks: false,\n+    pedantic: false,\n+    // sanitize has to be false, otherwise embedded html isn't rendered correctly\n+    sanitize: false,\n+    smartLists: true,\n+    smartypants: false\n+});\n+\n+var Collapsible = React.createClass({\n+    propTypes: {\n+        title: React.PropTypes.string.isRequired,\n+        content: React.PropTypes.string,\n+    },\n+\n+    getDefaultProps: function() {\n+        return {\n+            content: '',\n+        };\n+    },\n+\n+    getInitialState: function() {\n+        return {\n+            isCollapsed: false,\n+        };\n+    },\n+\n+\n+    render: function() {\n+        var contents = this.state.isCollapsed ? null: \n+            <div className='paragraph' dangerouslySetInnerHTML={{__html: marked(this.props.content)}} />\n+\n+        return(<div className='panel-group'>","path":"src/js/collapsible-text.jsx","position":40,"original_position":40,"commit_id":"d6281dce832d8ca75cc119df0147eb6c1fc68eb8","original_commit_id":"d6281dce832d8ca75cc119df0147eb6c1fc68eb8","user":{"login":"bruth","id":515142,"avatar_url":"https://avatars.githubusercontent.com/u/515142?v=3","gravatar_id":"","url":"https://api.github.com/users/bruth","html_url":"https://github.com/bruth","followers_url":"https://api.github.com/users/bruth/followers","following_url":"https://api.github.com/users/bruth/following{/other_user}","gists_url":"https://api.github.com/users/bruth/gists{/gist_id}","starred_url":"https://api.github.com/users/bruth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruth/subscriptions","organizations_url":"https://api.github.com/users/bruth/orgs","repos_url":"https://api.github.com/users/bruth/repos","events_url":"https://api.github.com/users/bruth/events{/privacy}","received_events_url":"https://api.github.com/users/bruth/received_events","type":"User","site_admin":false},"body":"For multi-line HTML, let's keep the convention that the opening paren is on the same line as the `return` and the markup starts on the next line.\r\n\r\n```jsx\r\nreturn (\r\n    <div ... />\r\n);\r\n```\r\n\r\nUpdate all instances of this. In addition ensure there is always a space preceding a left paren, `return (` rather than `return(` or `if(`.","created_at":"2015-09-28T12:36:56Z","updated_at":"2015-09-28T12:36:56Z","html_url":"https://github.com/PEDSnet/pedsnet-catalogue/pull/1#discussion_r40546339","pull_request_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/comments/40546339"},"html":{"href":"https://github.com/PEDSnet/pedsnet-catalogue/pull/1#discussion_r40546339"},"pull_request":{"href":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/1","id":43163827,"html_url":"https://github.com/PEDSnet/pedsnet-catalogue/pull/1","diff_url":"https://github.com/PEDSnet/pedsnet-catalogue/pull/1.diff","patch_url":"https://github.com/PEDSnet/pedsnet-catalogue/pull/1.patch","issue_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/issues/1","number":1,"state":"open","locked":false,"title":"Please just keep this open so that I can add my commits here","user":{"login":"l-k-","id":6386739,"avatar_url":"https://avatars.githubusercontent.com/u/6386739?v=3","gravatar_id":"","url":"https://api.github.com/users/l-k-","html_url":"https://github.com/l-k-","followers_url":"https://api.github.com/users/l-k-/followers","following_url":"https://api.github.com/users/l-k-/following{/other_user}","gists_url":"https://api.github.com/users/l-k-/gists{/gist_id}","starred_url":"https://api.github.com/users/l-k-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l-k-/subscriptions","organizations_url":"https://api.github.com/users/l-k-/orgs","repos_url":"https://api.github.com/users/l-k-/repos","events_url":"https://api.github.com/users/l-k-/events{/privacy}","received_events_url":"https://api.github.com/users/l-k-/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-24T11:15:48Z","updated_at":"2015-09-28T12:36:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"229aa2db054cbd8befd011d09268d89314ddc6dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/1/commits","review_comments_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/1/comments","review_comment_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/issues/1/comments","statuses_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/statuses/d6281dce832d8ca75cc119df0147eb6c1fc68eb8","head":{"label":"l-k-:master","ref":"master","sha":"d6281dce832d8ca75cc119df0147eb6c1fc68eb8","user":{"login":"l-k-","id":6386739,"avatar_url":"https://avatars.githubusercontent.com/u/6386739?v=3","gravatar_id":"","url":"https://api.github.com/users/l-k-","html_url":"https://github.com/l-k-","followers_url":"https://api.github.com/users/l-k-/followers","following_url":"https://api.github.com/users/l-k-/following{/other_user}","gists_url":"https://api.github.com/users/l-k-/gists{/gist_id}","starred_url":"https://api.github.com/users/l-k-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l-k-/subscriptions","organizations_url":"https://api.github.com/users/l-k-/orgs","repos_url":"https://api.github.com/users/l-k-/repos","events_url":"https://api.github.com/users/l-k-/events{/privacy}","received_events_url":"https://api.github.com/users/l-k-/received_events","type":"User","site_admin":false},"repo":{"id":41032282,"name":"pedsnet-catalogue","full_name":"l-k-/pedsnet-catalogue","owner":{"login":"l-k-","id":6386739,"avatar_url":"https://avatars.githubusercontent.com/u/6386739?v=3","gravatar_id":"","url":"https://api.github.com/users/l-k-","html_url":"https://github.com/l-k-","followers_url":"https://api.github.com/users/l-k-/followers","following_url":"https://api.github.com/users/l-k-/following{/other_user}","gists_url":"https://api.github.com/users/l-k-/gists{/gist_id}","starred_url":"https://api.github.com/users/l-k-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l-k-/subscriptions","organizations_url":"https://api.github.com/users/l-k-/orgs","repos_url":"https://api.github.com/users/l-k-/repos","events_url":"https://api.github.com/users/l-k-/events{/privacy}","received_events_url":"https://api.github.com/users/l-k-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/l-k-/pedsnet-catalogue","description":"","fork":true,"url":"https://api.github.com/repos/l-k-/pedsnet-catalogue","forks_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/forks","keys_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/teams","hooks_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/hooks","issue_events_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/issues/events{/number}","events_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/events","assignees_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/assignees{/user}","branches_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/branches{/branch}","tags_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/tags","blobs_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/git/refs{/sha}","trees_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/statuses/{sha}","languages_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/languages","stargazers_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/stargazers","contributors_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/contributors","subscribers_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/subscribers","subscription_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/subscription","commits_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/commits{/sha}","git_commits_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/git/commits{/sha}","comments_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/comments{/number}","issue_comment_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/issues/comments{/number}","contents_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/contents/{+path}","compare_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/merges","archive_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/downloads","issues_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/issues{/number}","pulls_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/pulls{/number}","milestones_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/milestones{/number}","notifications_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/labels{/name}","releases_url":"https://api.github.com/repos/l-k-/pedsnet-catalogue/releases{/id}","created_at":"2015-08-19T12:22:51Z","updated_at":"2015-08-19T12:22:52Z","pushed_at":"2015-09-28T06:04:55Z","git_url":"git://github.com/l-k-/pedsnet-catalogue.git","ssh_url":"git@github.com:l-k-/pedsnet-catalogue.git","clone_url":"https://github.com/l-k-/pedsnet-catalogue.git","svn_url":"https://github.com/l-k-/pedsnet-catalogue","homepage":null,"size":150,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"master"}},"base":{"label":"PEDSnet:master","ref":"master","sha":"29c82ae342b7b6b4ffdfdde25c8c2145948e2ae7","user":{"login":"PEDSnet","id":7228066,"avatar_url":"https://avatars.githubusercontent.com/u/7228066?v=3","gravatar_id":"","url":"https://api.github.com/users/PEDSnet","html_url":"https://github.com/PEDSnet","followers_url":"https://api.github.com/users/PEDSnet/followers","following_url":"https://api.github.com/users/PEDSnet/following{/other_user}","gists_url":"https://api.github.com/users/PEDSnet/gists{/gist_id}","starred_url":"https://api.github.com/users/PEDSnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PEDSnet/subscriptions","organizations_url":"https://api.github.com/users/PEDSnet/orgs","repos_url":"https://api.github.com/users/PEDSnet/repos","events_url":"https://api.github.com/users/PEDSnet/events{/privacy}","received_events_url":"https://api.github.com/users/PEDSnet/received_events","type":"Organization","site_admin":false},"repo":{"id":41030153,"name":"pedsnet-catalogue","full_name":"PEDSnet/pedsnet-catalogue","owner":{"login":"PEDSnet","id":7228066,"avatar_url":"https://avatars.githubusercontent.com/u/7228066?v=3","gravatar_id":"","url":"https://api.github.com/users/PEDSnet","html_url":"https://github.com/PEDSnet","followers_url":"https://api.github.com/users/PEDSnet/followers","following_url":"https://api.github.com/users/PEDSnet/following{/other_user}","gists_url":"https://api.github.com/users/PEDSnet/gists{/gist_id}","starred_url":"https://api.github.com/users/PEDSnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PEDSnet/subscriptions","organizations_url":"https://api.github.com/users/PEDSnet/orgs","repos_url":"https://api.github.com/users/PEDSnet/repos","events_url":"https://api.github.com/users/PEDSnet/events{/privacy}","received_events_url":"https://api.github.com/users/PEDSnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PEDSnet/pedsnet-catalogue","description":"","fork":false,"url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue","forks_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/forks","keys_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/teams","hooks_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/hooks","issue_events_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/issues/events{/number}","events_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/events","assignees_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/assignees{/user}","branches_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/branches{/branch}","tags_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/tags","blobs_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/git/refs{/sha}","trees_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/statuses/{sha}","languages_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/languages","stargazers_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/stargazers","contributors_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/contributors","subscribers_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/subscribers","subscription_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/subscription","commits_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/commits{/sha}","git_commits_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/git/commits{/sha}","comments_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/comments{/number}","issue_comment_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/issues/comments{/number}","contents_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/contents/{+path}","compare_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/merges","archive_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/downloads","issues_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/issues{/number}","pulls_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls{/number}","milestones_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/milestones{/number}","notifications_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/labels{/name}","releases_url":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/releases{/id}","created_at":"2015-08-19T11:30:36Z","updated_at":"2015-08-19T11:34:56Z","pushed_at":"2015-09-28T06:04:56Z","git_url":"git://github.com/PEDSnet/pedsnet-catalogue.git","ssh_url":"git@github.com:PEDSnet/pedsnet-catalogue.git","clone_url":"https://github.com/PEDSnet/pedsnet-catalogue.git","svn_url":"https://github.com/PEDSnet/pedsnet-catalogue","homepage":null,"size":223,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/1"},"html":{"href":"https://github.com/PEDSnet/pedsnet-catalogue/pull/1"},"issue":{"href":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/issues/1"},"comments":{"href":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/PEDSnet/pedsnet-catalogue/statuses/d6281dce832d8ca75cc119df0147eb6c1fc68eb8"}}}}