{"action":"created","comment":{"url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/comments/60132870","id":60132870,"diff_hunk":"@@ -1,30 +1,48 @@\n import {Component} from 'angular2/core';\n+import {RouterLink} from 'angular2/router';\n import {SpinnerComponent} from '../shared/spinner/spinner.component';\n import {CmsService} from '../shared/cms/cms.service';\n \n @Component({\n-  directives: [SpinnerComponent],\n+  directives: [SpinnerComponent, RouterLink],\n   selector: 'publish-home',\n   styleUrls: ['app/home/home.component.css'],\n   template: `\n-    <spinner *ngIf=\"isLoading\"></spinner>\n-    <div *ngIf=\"!isLoading\">\n-      <h1>Home Page</h1>\n-      <p *ngIf=\"userName\">You are logged in as {{userName}}</p>\n-      <p *ngIf=\"!userName\">You are not logged in. Shame on you.</p>\n+    <div class=\"main\">\n+      <section>\n+        <spinner *ngIf=\"!accounts\"></spinner>\n+        <div *ngIf=\"accounts\">\n+          <h1>Your Accounts</h1>\n+          <div *ngFor=\"#account of accounts; #i = index\">\n+            <h2>{{account.name}} <i>{{account.type}}</i></h2>\n+            <ul>\n+              <li *ngFor=\"#story of accountStories[i]\">","path":"app/home/home.component.ts","position":25,"original_position":25,"commit_id":"0cfe20c0b63f6610c67b54ed39f301fc325bc004","original_commit_id":"0cfe20c0b63f6610c67b54ed39f301fc325bc004","user":{"login":"cavis","id":1410587,"avatar_url":"https://avatars.githubusercontent.com/u/1410587?v=3","gravatar_id":"","url":"https://api.github.com/users/cavis","html_url":"https://github.com/cavis","followers_url":"https://api.github.com/users/cavis/followers","following_url":"https://api.github.com/users/cavis/following{/other_user}","gists_url":"https://api.github.com/users/cavis/gists{/gist_id}","starred_url":"https://api.github.com/users/cavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cavis/subscriptions","organizations_url":"https://api.github.com/users/cavis/orgs","repos_url":"https://api.github.com/users/cavis/repos","events_url":"https://api.github.com/users/cavis/events{/privacy}","received_events_url":"https://api.github.com/users/cavis/received_events","type":"User","site_admin":false},"body":"It ends up making a GET request to `/authorization/account/:id/stories` for each account.  Which I think just comes back with whatever the CMS kaminari default is?  (10?)\r\n\r\nThis code in particular is just a \"proof of concept\" - I'm guessing whomever <cough cough> comes up with the actual UI will do a better job with requests/paging.","created_at":"2016-04-18T20:57:19Z","updated_at":"2016-04-18T20:57:19Z","html_url":"https://github.com/PRX/publish.prx.org/pull/14#discussion_r60132870","pull_request_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/comments/60132870"},"html":{"href":"https://github.com/PRX/publish.prx.org/pull/14#discussion_r60132870"},"pull_request":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/14","id":64957650,"html_url":"https://github.com/PRX/publish.prx.org/pull/14","diff_url":"https://github.com/PRX/publish.prx.org/pull/14.diff","patch_url":"https://github.com/PRX/publish.prx.org/pull/14.patch","issue_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/14","number":14,"state":"open","locked":false,"title":"Story edit pages","user":{"login":"cavis","id":1410587,"avatar_url":"https://avatars.githubusercontent.com/u/1410587?v=3","gravatar_id":"","url":"https://api.github.com/users/cavis","html_url":"https://github.com/cavis","followers_url":"https://api.github.com/users/cavis/followers","following_url":"https://api.github.com/users/cavis/following{/other_user}","gists_url":"https://api.github.com/users/cavis/gists{/gist_id}","starred_url":"https://api.github.com/users/cavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cavis/subscriptions","organizations_url":"https://api.github.com/users/cavis/orgs","repos_url":"https://api.github.com/users/cavis/repos","events_url":"https://api.github.com/users/cavis/events{/privacy}","received_events_url":"https://api.github.com/users/cavis/received_events","type":"User","site_admin":false},"body":"Puts together the basic structure for story editing (and sub-pages of that).  Also includes a lot of work around CMS integration and testing.","created_at":"2016-04-01T15:00:30Z","updated_at":"2016-04-18T20:57:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a624d6304b490cc8fd7170cef0380b9d20975b5","assignee":{"login":"kookster","id":46439,"avatar_url":"https://avatars.githubusercontent.com/u/46439?v=3","gravatar_id":"","url":"https://api.github.com/users/kookster","html_url":"https://github.com/kookster","followers_url":"https://api.github.com/users/kookster/followers","following_url":"https://api.github.com/users/kookster/following{/other_user}","gists_url":"https://api.github.com/users/kookster/gists{/gist_id}","starred_url":"https://api.github.com/users/kookster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kookster/subscriptions","organizations_url":"https://api.github.com/users/kookster/orgs","repos_url":"https://api.github.com/users/kookster/repos","events_url":"https://api.github.com/users/kookster/events{/privacy}","received_events_url":"https://api.github.com/users/kookster/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/14/commits","review_comments_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/14/comments","review_comment_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/14/comments","statuses_url":"https://api.github.com/repos/PRX/publish.prx.org/statuses/0cfe20c0b63f6610c67b54ed39f301fc325bc004","head":{"label":"PRX:feat/story-create","ref":"feat/story-create","sha":"0cfe20c0b63f6610c67b54ed39f301fc325bc004","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":53075022,"name":"publish.prx.org","full_name":"PRX/publish.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/publish.prx.org","description":"Publishing app","fork":false,"url":"https://api.github.com/repos/PRX/publish.prx.org","forks_url":"https://api.github.com/repos/PRX/publish.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/publish.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/publish.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/publish.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/publish.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/publish.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/publish.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/publish.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/publish.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/publish.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/publish.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/publish.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/publish.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/publish.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/publish.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/publish.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/publish.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/publish.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/publish.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/publish.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/publish.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/publish.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/publish.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/publish.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/publish.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/publish.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/publish.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/publish.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/publish.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/publish.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/publish.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/publish.prx.org/releases{/id}","deployments_url":"https://api.github.com/repos/PRX/publish.prx.org/deployments","created_at":"2016-03-03T18:55:16Z","updated_at":"2016-03-31T16:34:56Z","pushed_at":"2016-04-18T16:03:12Z","git_url":"git://github.com/PRX/publish.prx.org.git","ssh_url":"git@github.com:PRX/publish.prx.org.git","clone_url":"https://github.com/PRX/publish.prx.org.git","svn_url":"https://github.com/PRX/publish.prx.org","homepage":null,"size":202,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"PRX:master","ref":"master","sha":"ffaba0af437044c5c1ebfa17f8b0f51f0b53773d","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":53075022,"name":"publish.prx.org","full_name":"PRX/publish.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/publish.prx.org","description":"Publishing app","fork":false,"url":"https://api.github.com/repos/PRX/publish.prx.org","forks_url":"https://api.github.com/repos/PRX/publish.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/publish.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/publish.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/publish.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/publish.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/publish.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/publish.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/publish.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/publish.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/publish.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/publish.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/publish.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/publish.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/publish.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/publish.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/publish.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/publish.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/publish.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/publish.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/publish.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/publish.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/publish.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/publish.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/publish.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/publish.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/publish.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/publish.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/publish.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/publish.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/publish.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/publish.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/publish.prx.org/releases{/id}","deployments_url":"https://api.github.com/repos/PRX/publish.prx.org/deployments","created_at":"2016-03-03T18:55:16Z","updated_at":"2016-03-31T16:34:56Z","pushed_at":"2016-04-18T16:03:12Z","git_url":"git://github.com/PRX/publish.prx.org.git","ssh_url":"git@github.com:PRX/publish.prx.org.git","clone_url":"https://github.com/PRX/publish.prx.org.git","svn_url":"https://github.com/PRX/publish.prx.org","homepage":null,"size":202,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/14"},"html":{"href":"https://github.com/PRX/publish.prx.org/pull/14"},"issue":{"href":"https://api.github.com/repos/PRX/publish.prx.org/issues/14"},"comments":{"href":"https://api.github.com/repos/PRX/publish.prx.org/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/PRX/publish.prx.org/statuses/0cfe20c0b63f6610c67b54ed39f301fc325bc004"}}}}