{"action":"created","comment":{"url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/comments/103321204","pull_request_review_id":24103406,"id":103321204,"diff_hunk":"@@ -0,0 +1,59 @@\n+<!-- header -->\n+<div class=\"jumbotron\">\n+  <div class=\"container\">\n+    <div class=\"row yay\">\n+      <div class=\"col-md-2\">\n+        <a ng-href=\"/\">\n+          <h1><span class=\"glyphicon glyphicon-arrow-left back-arrow\" aria-hidden=\"true\"></span></h1>\n+        </a>\n+      </div>\n+      <div class=\"col-md-10\">\n+        <h1>{{booksShowCtrl.book.title}}</h1>\n+      </div>\n+    </div>\n+  </div>\n+</div>\n+\n+<!-- book/edit form -->\n+<div class=\"container\">\n+  <div class=\"form-inline\">\n+    <div class=\"row\">\n+      <!-- image -->\n+      <div class=\"col-md-3 col-md-offset-3\">\n+        <img class=\"showpage-image\" ng-src=\"{{booksShowCtrl.book.image}}\"></img>\n+      </div>\n+      <!-- book info/edit form -->\n+      <form>\n+        <div class=\"col-md-3 book-page-text\">\n+          <div class=\"book-info\" ng-hide=\"editing\">{{booksShowCtrl.book.title}}</div>\n+          <input ng-show=\"editing\" ng-model=\"booksShowCtrl.book.title\" type=\"text\" class=\"form-control input-md\" placeholder=\"title\">\n+\n+          <div class=\"book-info\" ng-hide=\"editing\">{{booksShowCtrl.book.author}}</div>\n+          <input ng-show=\"editing\" ng-model=\"booksShowCtrl.book.author\" type=\"text\" class=\"form-control input-md\" placeholder=\"author\">\n+\n+          <div class=\"book-info\" ng-hide=\"editing\">{{booksShowCtrl.book.releaseDate}}</div>\n+          <input ng-show=\"editing\" ng-model=\"booksShowCtrl.book.releaseDate\" type=\"text\" class=\"form-control input-md\" placeholder=\"release date\">\n+\n+          <input ng-show=\"editing\" ng-model=\"booksShowCtrl.book.image\" type=\"text\" class=\"form-control input-md\" placeholder=\"image\">\n+          <label ng-show=\"editing\">image url</label>\n+\n+          <!-- buttons -->\n+          <div>\n+            <button class='btn btn-default book-info' ng-click=\"booksShowCtrl.deleteBook(booksShowCtrl.book)\" aria-label=\"delete\">\n+              <span class=\"glyphicon glyphicon-trash\" aria-hidden=\"true\"></span>\n+            </button>\n+            <button class='btn btn-default book-info' ng-hide=\"editing\" ng-click=\"editing = true\" aria-label=\"edit\">","path":"templates/books-show.html","position":45,"original_position":45,"commit_id":"d75911d2244c28a462a066f31b4956d1b834ee04","original_commit_id":"d75911d2244c28a462a066f31b4956d1b834ee04","user":{"login":"mnfmnfm","id":17582709,"avatar_url":"https://avatars.githubusercontent.com/u/17582709?v=3","gravatar_id":"","url":"https://api.github.com/users/mnfmnfm","html_url":"https://github.com/mnfmnfm","followers_url":"https://api.github.com/users/mnfmnfm/followers","following_url":"https://api.github.com/users/mnfmnfm/following{/other_user}","gists_url":"https://api.github.com/users/mnfmnfm/gists{/gist_id}","starred_url":"https://api.github.com/users/mnfmnfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnfmnfm/subscriptions","organizations_url":"https://api.github.com/users/mnfmnfm/orgs","repos_url":"https://api.github.com/users/mnfmnfm/repos","events_url":"https://api.github.com/users/mnfmnfm/events{/privacy}","received_events_url":"https://api.github.com/users/mnfmnfm/received_events","type":"User","site_admin":false},"body":"Everywhere that you're setting editing using 2 lines of JS in your ng-click, or like here, it would be better to put that in a variable inside of booksShowCtrl and include this.editing=true in the other functions you call as click callbacks.","created_at":"2017-02-27T21:49:54Z","updated_at":"2017-02-27T21:50:21Z","html_url":"https://github.com/sf-wdi-35/angular-books-crud-lab/pull/4#discussion_r103321204","pull_request_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/comments/103321204"},"html":{"href":"https://github.com/sf-wdi-35/angular-books-crud-lab/pull/4#discussion_r103321204"},"pull_request":{"href":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/4","id":108056270,"html_url":"https://github.com/sf-wdi-35/angular-books-crud-lab/pull/4","diff_url":"https://github.com/sf-wdi-35/angular-books-crud-lab/pull/4.diff","patch_url":"https://github.com/sf-wdi-35/angular-books-crud-lab/pull/4.patch","issue_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/issues/4","number":4,"state":"open","locked":false,"title":"weston <3 books","user":{"login":"westondombroski","id":19750307,"avatar_url":"https://avatars.githubusercontent.com/u/19750307?v=3","gravatar_id":"","url":"https://api.github.com/users/westondombroski","html_url":"https://github.com/westondombroski","followers_url":"https://api.github.com/users/westondombroski/followers","following_url":"https://api.github.com/users/westondombroski/following{/other_user}","gists_url":"https://api.github.com/users/westondombroski/gists{/gist_id}","starred_url":"https://api.github.com/users/westondombroski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westondombroski/subscriptions","organizations_url":"https://api.github.com/users/westondombroski/orgs","repos_url":"https://api.github.com/users/westondombroski/repos","events_url":"https://api.github.com/users/westondombroski/events{/privacy}","received_events_url":"https://api.github.com/users/westondombroski/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-27T06:50:55Z","updated_at":"2017-02-27T21:50:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcaa609cda213d33f7a9195137e3b849b7ad4af5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/4/commits","review_comments_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/4/comments","review_comment_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/issues/4/comments","statuses_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/statuses/d75911d2244c28a462a066f31b4956d1b834ee04","head":{"label":"westondombroski:master","ref":"master","sha":"d75911d2244c28a462a066f31b4956d1b834ee04","user":{"login":"westondombroski","id":19750307,"avatar_url":"https://avatars.githubusercontent.com/u/19750307?v=3","gravatar_id":"","url":"https://api.github.com/users/westondombroski","html_url":"https://github.com/westondombroski","followers_url":"https://api.github.com/users/westondombroski/followers","following_url":"https://api.github.com/users/westondombroski/following{/other_user}","gists_url":"https://api.github.com/users/westondombroski/gists{/gist_id}","starred_url":"https://api.github.com/users/westondombroski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westondombroski/subscriptions","organizations_url":"https://api.github.com/users/westondombroski/orgs","repos_url":"https://api.github.com/users/westondombroski/repos","events_url":"https://api.github.com/users/westondombroski/events{/privacy}","received_events_url":"https://api.github.com/users/westondombroski/received_events","type":"User","site_admin":false},"repo":{"id":83091021,"name":"angular-books-crud-lab","full_name":"westondombroski/angular-books-crud-lab","owner":{"login":"westondombroski","id":19750307,"avatar_url":"https://avatars.githubusercontent.com/u/19750307?v=3","gravatar_id":"","url":"https://api.github.com/users/westondombroski","html_url":"https://github.com/westondombroski","followers_url":"https://api.github.com/users/westondombroski/followers","following_url":"https://api.github.com/users/westondombroski/following{/other_user}","gists_url":"https://api.github.com/users/westondombroski/gists{/gist_id}","starred_url":"https://api.github.com/users/westondombroski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westondombroski/subscriptions","organizations_url":"https://api.github.com/users/westondombroski/orgs","repos_url":"https://api.github.com/users/westondombroski/repos","events_url":"https://api.github.com/users/westondombroski/events{/privacy}","received_events_url":"https://api.github.com/users/westondombroski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/westondombroski/angular-books-crud-lab","description":"Build an Angular application that CRUDs books","fork":true,"url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab","forks_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/forks","keys_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/teams","hooks_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/hooks","issue_events_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/issues/events{/number}","events_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/events","assignees_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/assignees{/user}","branches_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/branches{/branch}","tags_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/tags","blobs_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/git/refs{/sha}","trees_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/statuses/{sha}","languages_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/languages","stargazers_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/stargazers","contributors_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/contributors","subscribers_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/subscribers","subscription_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/subscription","commits_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/commits{/sha}","git_commits_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/git/commits{/sha}","comments_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/comments{/number}","issue_comment_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/issues/comments{/number}","contents_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/contents/{+path}","compare_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/merges","archive_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/downloads","issues_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/issues{/number}","pulls_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/pulls{/number}","milestones_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/milestones{/number}","notifications_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/labels{/name}","releases_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/releases{/id}","deployments_url":"https://api.github.com/repos/westondombroski/angular-books-crud-lab/deployments","created_at":"2017-02-24T23:18:04Z","updated_at":"2017-02-26T17:43:21Z","pushed_at":"2017-02-27T06:47:46Z","git_url":"git://github.com/westondombroski/angular-books-crud-lab.git","ssh_url":"git@github.com:westondombroski/angular-books-crud-lab.git","clone_url":"https://github.com/westondombroski/angular-books-crud-lab.git","svn_url":"https://github.com/westondombroski/angular-books-crud-lab","homepage":"","size":1605,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"sf-wdi-35:master","ref":"master","sha":"8de62db7fd1fc3afd27905398a09f2f176392616","user":{"login":"sf-wdi-35","id":25089033,"avatar_url":"https://avatars.githubusercontent.com/u/25089033?v=3","gravatar_id":"","url":"https://api.github.com/users/sf-wdi-35","html_url":"https://github.com/sf-wdi-35","followers_url":"https://api.github.com/users/sf-wdi-35/followers","following_url":"https://api.github.com/users/sf-wdi-35/following{/other_user}","gists_url":"https://api.github.com/users/sf-wdi-35/gists{/gist_id}","starred_url":"https://api.github.com/users/sf-wdi-35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sf-wdi-35/subscriptions","organizations_url":"https://api.github.com/users/sf-wdi-35/orgs","repos_url":"https://api.github.com/users/sf-wdi-35/repos","events_url":"https://api.github.com/users/sf-wdi-35/events{/privacy}","received_events_url":"https://api.github.com/users/sf-wdi-35/received_events","type":"Organization","site_admin":false},"repo":{"id":83088974,"name":"angular-books-crud-lab","full_name":"sf-wdi-35/angular-books-crud-lab","owner":{"login":"sf-wdi-35","id":25089033,"avatar_url":"https://avatars.githubusercontent.com/u/25089033?v=3","gravatar_id":"","url":"https://api.github.com/users/sf-wdi-35","html_url":"https://github.com/sf-wdi-35","followers_url":"https://api.github.com/users/sf-wdi-35/followers","following_url":"https://api.github.com/users/sf-wdi-35/following{/other_user}","gists_url":"https://api.github.com/users/sf-wdi-35/gists{/gist_id}","starred_url":"https://api.github.com/users/sf-wdi-35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sf-wdi-35/subscriptions","organizations_url":"https://api.github.com/users/sf-wdi-35/orgs","repos_url":"https://api.github.com/users/sf-wdi-35/repos","events_url":"https://api.github.com/users/sf-wdi-35/events{/privacy}","received_events_url":"https://api.github.com/users/sf-wdi-35/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sf-wdi-35/angular-books-crud-lab","description":"Build an Angular application that CRUDs books","fork":true,"url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab","forks_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/forks","keys_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/teams","hooks_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/hooks","issue_events_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/issues/events{/number}","events_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/events","assignees_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/assignees{/user}","branches_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/branches{/branch}","tags_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/tags","blobs_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/git/refs{/sha}","trees_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/statuses/{sha}","languages_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/languages","stargazers_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/stargazers","contributors_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/contributors","subscribers_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/subscribers","subscription_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/subscription","commits_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/commits{/sha}","git_commits_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/git/commits{/sha}","comments_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/comments{/number}","issue_comment_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/issues/comments{/number}","contents_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/contents/{+path}","compare_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/merges","archive_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/downloads","issues_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/issues{/number}","pulls_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls{/number}","milestones_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/milestones{/number}","notifications_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/labels{/name}","releases_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/releases{/id}","deployments_url":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/deployments","created_at":"2017-02-24T22:41:18Z","updated_at":"2017-02-24T21:43:19Z","pushed_at":"2017-02-27T18:14:09Z","git_url":"git://github.com/sf-wdi-35/angular-books-crud-lab.git","ssh_url":"git@github.com:sf-wdi-35/angular-books-crud-lab.git","clone_url":"https://github.com/sf-wdi-35/angular-books-crud-lab.git","svn_url":"https://github.com/sf-wdi-35/angular-books-crud-lab","homepage":"","size":48,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":15,"forks":15,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/4"},"html":{"href":"https://github.com/sf-wdi-35/angular-books-crud-lab/pull/4"},"issue":{"href":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/issues/4"},"comments":{"href":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/sf-wdi-35/angular-books-crud-lab/statuses/d75911d2244c28a462a066f31b4956d1b834ee04"}}}}
{"actor":{"display_login":"mnfmnfm"}}