{"action":"created","comment":{"url":"https://api.github.com/repos/vizorvr/vizor/pulls/comments/76989444","id":76989444,"diff_hunk":"@@ -210,99 +257,125 @@ GraphController.prototype._userOwnIndex = function(user, req, res, next) {\n \t\t}, data)\n \n \t\t// format\n-\t\tdata.publicGraphs = publicList || []\n-\t\tdata.privateGraphs = privateList || []\n+\t\tdata.publicGraphs = publicGraphs\n+\t\tdata.privateGraphs = privateGraphs\n \t\tdata.profile = profile\n \n+\t\tif (publicGraphs)\n+\t\t\tdata.publicHasMoreLink = publicGraphs.meta.totalCount > publicGraphs.meta.listCount\n+\n+\t\tif (privateGraphs)\n+\t\t\tdata.privateHasMoreLink = privateGraphs.meta.totalCount > privateGraphs.meta.listCount\n+\n \t\t// allow the 'create' card to appear if both lists are empty. see css.\n-\t\tvar noProjectsClass = (data.publicGraphs.length + data.privateGraphs.length > 0) ? '' : 'noProjects '\n+\t\tvar totalProjects = 0\n+\t\tfor (var graphs of [data.publicGraphs, data.privateGraphs]) {\n+\t\t\tif (graphs) {","path":"controllers/graphController.js","position":139,"original_position":139,"commit_id":"76471e86177ecacf89d732a7fc7fff688b4bdd18","original_commit_id":"97feed087810a5d0631bd6e1138bace980a871c1","user":{"login":"kschzt","id":293426,"avatar_url":"https://avatars.githubusercontent.com/u/293426?v=3","gravatar_id":"","url":"https://api.github.com/users/kschzt","html_url":"https://github.com/kschzt","followers_url":"https://api.github.com/users/kschzt/followers","following_url":"https://api.github.com/users/kschzt/following{/other_user}","gists_url":"https://api.github.com/users/kschzt/gists{/gist_id}","starred_url":"https://api.github.com/users/kschzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kschzt/subscriptions","organizations_url":"https://api.github.com/users/kschzt/orgs","repos_url":"https://api.github.com/users/kschzt/repos","events_url":"https://api.github.com/users/kschzt/events{/privacy}","received_events_url":"https://api.github.com/users/kschzt/received_events","type":"User","site_admin":false},"body":"redundant if?","created_at":"2016-08-31T13:45:34Z","updated_at":"2016-08-31T13:45:34Z","html_url":"https://github.com/vizorvr/vizor/pull/1873#discussion_r76989444","pull_request_url":"https://api.github.com/repos/vizorvr/vizor/pulls/1873","_links":{"self":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/comments/76989444"},"html":{"href":"https://github.com/vizorvr/vizor/pull/1873#discussion_r76989444"},"pull_request":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/1873"}}},"pull_request":{"url":"https://api.github.com/repos/vizorvr/vizor/pulls/1873","id":83330446,"html_url":"https://github.com/vizorvr/vizor/pull/1873","diff_url":"https://github.com/vizorvr/vizor/pull/1873.diff","patch_url":"https://github.com/vizorvr/vizor/pull/1873.patch","issue_url":"https://api.github.com/repos/vizorvr/vizor/issues/1873","number":1873,"state":"open","locked":false,"title":"pagination and minor site refinements","user":{"login":"gmarinov","id":14101296,"avatar_url":"https://avatars.githubusercontent.com/u/14101296?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarinov","html_url":"https://github.com/gmarinov","followers_url":"https://api.github.com/users/gmarinov/followers","following_url":"https://api.github.com/users/gmarinov/following{/other_user}","gists_url":"https://api.github.com/users/gmarinov/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarinov/subscriptions","organizations_url":"https://api.github.com/users/gmarinov/orgs","repos_url":"https://api.github.com/users/gmarinov/repos","events_url":"https://api.github.com/users/gmarinov/events{/privacy}","received_events_url":"https://api.github.com/users/gmarinov/received_events","type":"User","site_admin":false},"body":"resolves #1859 - implement pagination UI on /browse and user pages \r\nresolves #1865 - editor patches search icon has incorrect dimensions\r\nresolves #1640 and resolves #1639 - add/update favicons\r\n\r\nalso contains:\r\n\r\n - replace user v and link to /v in public graph cards with 360.vizor.io\r\n - add a subtle mark to ranked graphs\r\n - when logging-in, navigate to the user's own page\r\n - minor request context is now exposed to handlebars engine\r\n - restore broken /latest-graph route, now at /~latest-graph\r\n - bugfixes to Vizor.pageObjects\r\n - mongoose module updated to ~4.5 (also in shrinkwrap)\r\n","created_at":"2016-08-30T19:18:35Z","updated_at":"2016-08-31T13:45:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"baffdb4cda32de728122709717bdc862f2e63cea","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vizorvr/vizor/pulls/1873/commits","review_comments_url":"https://api.github.com/repos/vizorvr/vizor/pulls/1873/comments","review_comment_url":"https://api.github.com/repos/vizorvr/vizor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vizorvr/vizor/issues/1873/comments","statuses_url":"https://api.github.com/repos/vizorvr/vizor/statuses/76471e86177ecacf89d732a7fc7fff688b4bdd18","head":{"label":"vizorvr:paging-temp","ref":"paging-temp","sha":"76471e86177ecacf89d732a7fc7fff688b4bdd18","user":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"repo":{"id":29096746,"name":"vizor","full_name":"vizorvr/vizor","owner":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vizorvr/vizor","description":"Vizor is a platform for creating and sharing WebVR content","fork":false,"url":"https://api.github.com/repos/vizorvr/vizor","forks_url":"https://api.github.com/repos/vizorvr/vizor/forks","keys_url":"https://api.github.com/repos/vizorvr/vizor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vizorvr/vizor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vizorvr/vizor/teams","hooks_url":"https://api.github.com/repos/vizorvr/vizor/hooks","issue_events_url":"https://api.github.com/repos/vizorvr/vizor/issues/events{/number}","events_url":"https://api.github.com/repos/vizorvr/vizor/events","assignees_url":"https://api.github.com/repos/vizorvr/vizor/assignees{/user}","branches_url":"https://api.github.com/repos/vizorvr/vizor/branches{/branch}","tags_url":"https://api.github.com/repos/vizorvr/vizor/tags","blobs_url":"https://api.github.com/repos/vizorvr/vizor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vizorvr/vizor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vizorvr/vizor/git/refs{/sha}","trees_url":"https://api.github.com/repos/vizorvr/vizor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vizorvr/vizor/statuses/{sha}","languages_url":"https://api.github.com/repos/vizorvr/vizor/languages","stargazers_url":"https://api.github.com/repos/vizorvr/vizor/stargazers","contributors_url":"https://api.github.com/repos/vizorvr/vizor/contributors","subscribers_url":"https://api.github.com/repos/vizorvr/vizor/subscribers","subscription_url":"https://api.github.com/repos/vizorvr/vizor/subscription","commits_url":"https://api.github.com/repos/vizorvr/vizor/commits{/sha}","git_commits_url":"https://api.github.com/repos/vizorvr/vizor/git/commits{/sha}","comments_url":"https://api.github.com/repos/vizorvr/vizor/comments{/number}","issue_comment_url":"https://api.github.com/repos/vizorvr/vizor/issues/comments{/number}","contents_url":"https://api.github.com/repos/vizorvr/vizor/contents/{+path}","compare_url":"https://api.github.com/repos/vizorvr/vizor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vizorvr/vizor/merges","archive_url":"https://api.github.com/repos/vizorvr/vizor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vizorvr/vizor/downloads","issues_url":"https://api.github.com/repos/vizorvr/vizor/issues{/number}","pulls_url":"https://api.github.com/repos/vizorvr/vizor/pulls{/number}","milestones_url":"https://api.github.com/repos/vizorvr/vizor/milestones{/number}","notifications_url":"https://api.github.com/repos/vizorvr/vizor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vizorvr/vizor/labels{/name}","releases_url":"https://api.github.com/repos/vizorvr/vizor/releases{/id}","deployments_url":"https://api.github.com/repos/vizorvr/vizor/deployments","created_at":"2015-01-11T15:54:34Z","updated_at":"2016-08-22T08:02:02Z","pushed_at":"2016-08-31T13:04:37Z","git_url":"git://github.com/vizorvr/vizor.git","ssh_url":"git@github.com:vizorvr/vizor.git","clone_url":"https://github.com/vizorvr/vizor.git","svn_url":"https://github.com/vizorvr/vizor","homepage":"http://vizor.io","size":56986,"stargazers_count":147,"watchers_count":147,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":280,"forks":27,"open_issues":280,"watchers":147,"default_branch":"develop"}},"base":{"label":"vizorvr:develop","ref":"develop","sha":"6d6ef0ea4ec3687f203786bd8bfbcf1664d807f6","user":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"repo":{"id":29096746,"name":"vizor","full_name":"vizorvr/vizor","owner":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vizorvr/vizor","description":"Vizor is a platform for creating and sharing WebVR content","fork":false,"url":"https://api.github.com/repos/vizorvr/vizor","forks_url":"https://api.github.com/repos/vizorvr/vizor/forks","keys_url":"https://api.github.com/repos/vizorvr/vizor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vizorvr/vizor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vizorvr/vizor/teams","hooks_url":"https://api.github.com/repos/vizorvr/vizor/hooks","issue_events_url":"https://api.github.com/repos/vizorvr/vizor/issues/events{/number}","events_url":"https://api.github.com/repos/vizorvr/vizor/events","assignees_url":"https://api.github.com/repos/vizorvr/vizor/assignees{/user}","branches_url":"https://api.github.com/repos/vizorvr/vizor/branches{/branch}","tags_url":"https://api.github.com/repos/vizorvr/vizor/tags","blobs_url":"https://api.github.com/repos/vizorvr/vizor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vizorvr/vizor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vizorvr/vizor/git/refs{/sha}","trees_url":"https://api.github.com/repos/vizorvr/vizor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vizorvr/vizor/statuses/{sha}","languages_url":"https://api.github.com/repos/vizorvr/vizor/languages","stargazers_url":"https://api.github.com/repos/vizorvr/vizor/stargazers","contributors_url":"https://api.github.com/repos/vizorvr/vizor/contributors","subscribers_url":"https://api.github.com/repos/vizorvr/vizor/subscribers","subscription_url":"https://api.github.com/repos/vizorvr/vizor/subscription","commits_url":"https://api.github.com/repos/vizorvr/vizor/commits{/sha}","git_commits_url":"https://api.github.com/repos/vizorvr/vizor/git/commits{/sha}","comments_url":"https://api.github.com/repos/vizorvr/vizor/comments{/number}","issue_comment_url":"https://api.github.com/repos/vizorvr/vizor/issues/comments{/number}","contents_url":"https://api.github.com/repos/vizorvr/vizor/contents/{+path}","compare_url":"https://api.github.com/repos/vizorvr/vizor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vizorvr/vizor/merges","archive_url":"https://api.github.com/repos/vizorvr/vizor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vizorvr/vizor/downloads","issues_url":"https://api.github.com/repos/vizorvr/vizor/issues{/number}","pulls_url":"https://api.github.com/repos/vizorvr/vizor/pulls{/number}","milestones_url":"https://api.github.com/repos/vizorvr/vizor/milestones{/number}","notifications_url":"https://api.github.com/repos/vizorvr/vizor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vizorvr/vizor/labels{/name}","releases_url":"https://api.github.com/repos/vizorvr/vizor/releases{/id}","deployments_url":"https://api.github.com/repos/vizorvr/vizor/deployments","created_at":"2015-01-11T15:54:34Z","updated_at":"2016-08-22T08:02:02Z","pushed_at":"2016-08-31T13:04:37Z","git_url":"git://github.com/vizorvr/vizor.git","ssh_url":"git@github.com:vizorvr/vizor.git","clone_url":"https://github.com/vizorvr/vizor.git","svn_url":"https://github.com/vizorvr/vizor","homepage":"http://vizor.io","size":56986,"stargazers_count":147,"watchers_count":147,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":280,"forks":27,"open_issues":280,"watchers":147,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/1873"},"html":{"href":"https://github.com/vizorvr/vizor/pull/1873"},"issue":{"href":"https://api.github.com/repos/vizorvr/vizor/issues/1873"},"comments":{"href":"https://api.github.com/repos/vizorvr/vizor/issues/1873/comments"},"review_comments":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/1873/comments"},"review_comment":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/1873/commits"},"statuses":{"href":"https://api.github.com/repos/vizorvr/vizor/statuses/76471e86177ecacf89d732a7fc7fff688b4bdd18"}}}}
{"actor":{"display_login":"kschzt"}}