{"action":"created","comment":{"url":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/comments/111785931","pull_request_review_id":33048587,"id":111785931,"diff_hunk":"@@ -1,30 +1,41 @@\n-<div class=\"wrapper\">\n-  <div class=\"image\"></div>\n-  <div class=\"book-title\"><%= book.title %></div>\n-  <div class=\"book-author\"><%= book.author %></div>\n-  <br>\n-  <div class=\"book-author book-year\">\n-    <span><%= book.year %> </span>\n-    <%= link_to 'Request', book_path(book), class:\"request\" %>\n+<div class=\"comments-wrapper\">\n+  <div class=\"book-container\">\n+    <div class=\"image\"></div>\n+    <div>\n+      <div class=\"book-title\"><%= book.title %></div>\n+      <div class=\"book-author\"><%= book.author %></div>\n+      <br>\n+      <div class=\"book-year-request\">\n+        <h4><%= book.year %></h4> \n+        <% if !current_user.requested?(book) %>\n+          <span id='<%= book.id %>'>\n+            <%= link_to 'Request', requests_path(book_id: book.id), method: :post, remote: true, class: \"request\" %>\n+          </span>\n+        <% else %>\n+          <span class=\"<% if current_user.request_status(book) == \"denied\"%>denied bold<% else %>bold dark-opacity big-20<% end %>\"><%= current_user.request_status(book) %></span>  \n+        <% end %>\n+      </div>\n+      <p><%= book.description %></p>\n+    </div>\n   </div>\n-  <p><%= book.description %></p>\n-  <h1>Comments</h1>\n-  <div class='comments'>\n-    <table>\n+  <div class='comments-container'>\n+    <h3>Comments</h3>\n       <% book.comments.each do |comment|%>\n-        <tr>\n-          <td><%= comment.description %></td>\n-          <td><%= comment.rate %></td>\n-        </tr>\n+        <div class=\"comment\">\n+          <h5>Gabriel - </h5><%= comment.rate %> <br>\n+          <%= comment.description %>\n+        </div>\n+        <div class=\"line-separator\"></div>\n       <% end %>\n-    </table>\n+    <div id=\"add-comment\"></div>\n+    <div class=\"new-comment\">\n+      <%= form_for :comment, url: book_comments_path(book), remote: true do |f| %>\n+          <h4>Add a comment - Rate:</h4>\n+          <%= f.number_field :rate, max:5, min:1 %> <br>\n+          <%= f.text_area :description, placeholder:\"Comment\", id:\"text_area\" %> <br>","path":"app/views/books/show.html.erb","position":52,"original_position":52,"commit_id":"eafaf3a9174ceb89655ec7a1aab468ccc91e13f8","original_commit_id":"eafaf3a9174ceb89655ec7a1aab468ccc91e13f8","user":{"login":"santiagovidal","id":11350611,"avatar_url":"https://avatars3.githubusercontent.com/u/11350611?v=3","gravatar_id":"","url":"https://api.github.com/users/santiagovidal","html_url":"https://github.com/santiagovidal","followers_url":"https://api.github.com/users/santiagovidal/followers","following_url":"https://api.github.com/users/santiagovidal/following{/other_user}","gists_url":"https://api.github.com/users/santiagovidal/gists{/gist_id}","starred_url":"https://api.github.com/users/santiagovidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiagovidal/subscriptions","organizations_url":"https://api.github.com/users/santiagovidal/orgs","repos_url":"https://api.github.com/users/santiagovidal/repos","events_url":"https://api.github.com/users/santiagovidal/events{/privacy}","received_events_url":"https://api.github.com/users/santiagovidal/received_events","type":"User","site_admin":false},"body":"Don't use ids to set CSS properties. Use classes for that.","created_at":"2017-04-17T18:02:37Z","updated_at":"2017-04-17T18:03:45Z","html_url":"https://github.com/gabrielbursztein/FirstProject/pull/9#discussion_r111785931","pull_request_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/comments/111785931"},"html":{"href":"https://github.com/gabrielbursztein/FirstProject/pull/9#discussion_r111785931"},"pull_request":{"href":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/9","id":115827902,"html_url":"https://github.com/gabrielbursztein/FirstProject/pull/9","diff_url":"https://github.com/gabrielbursztein/FirstProject/pull/9.diff","patch_url":"https://github.com/gabrielbursztein/FirstProject/pull/9.patch","issue_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/issues/9","number":9,"state":"open","locked":false,"title":"Comments now have css","user":{"login":"gabrielbursztein","id":26905199,"avatar_url":"https://avatars0.githubusercontent.com/u/26905199?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielbursztein","html_url":"https://github.com/gabrielbursztein","followers_url":"https://api.github.com/users/gabrielbursztein/followers","following_url":"https://api.github.com/users/gabrielbursztein/following{/other_user}","gists_url":"https://api.github.com/users/gabrielbursztein/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielbursztein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielbursztein/subscriptions","organizations_url":"https://api.github.com/users/gabrielbursztein/orgs","repos_url":"https://api.github.com/users/gabrielbursztein/repos","events_url":"https://api.github.com/users/gabrielbursztein/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielbursztein/received_events","type":"User","site_admin":false},"body":"Css in comments and Books API","created_at":"2017-04-13T19:38:21Z","updated_at":"2017-04-17T18:03:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2906681d78c2ad5fa4ebfb51b411100296b79363","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/9/commits","review_comments_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/9/comments","review_comment_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/issues/9/comments","statuses_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/statuses/eafaf3a9174ceb89655ec7a1aab468ccc91e13f8","head":{"label":"gabrielbursztein:css_comments","ref":"css_comments","sha":"eafaf3a9174ceb89655ec7a1aab468ccc91e13f8","user":{"login":"gabrielbursztein","id":26905199,"avatar_url":"https://avatars0.githubusercontent.com/u/26905199?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielbursztein","html_url":"https://github.com/gabrielbursztein","followers_url":"https://api.github.com/users/gabrielbursztein/followers","following_url":"https://api.github.com/users/gabrielbursztein/following{/other_user}","gists_url":"https://api.github.com/users/gabrielbursztein/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielbursztein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielbursztein/subscriptions","organizations_url":"https://api.github.com/users/gabrielbursztein/orgs","repos_url":"https://api.github.com/users/gabrielbursztein/repos","events_url":"https://api.github.com/users/gabrielbursztein/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielbursztein/received_events","type":"User","site_admin":false},"repo":{"id":87211178,"name":"FirstProject","full_name":"gabrielbursztein/FirstProject","owner":{"login":"gabrielbursztein","id":26905199,"avatar_url":"https://avatars0.githubusercontent.com/u/26905199?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielbursztein","html_url":"https://github.com/gabrielbursztein","followers_url":"https://api.github.com/users/gabrielbursztein/followers","following_url":"https://api.github.com/users/gabrielbursztein/following{/other_user}","gists_url":"https://api.github.com/users/gabrielbursztein/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielbursztein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielbursztein/subscriptions","organizations_url":"https://api.github.com/users/gabrielbursztein/orgs","repos_url":"https://api.github.com/users/gabrielbursztein/repos","events_url":"https://api.github.com/users/gabrielbursztein/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielbursztein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabrielbursztein/FirstProject","description":null,"fork":false,"url":"https://api.github.com/repos/gabrielbursztein/FirstProject","forks_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/forks","keys_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/teams","hooks_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/hooks","issue_events_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/issues/events{/number}","events_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/events","assignees_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/assignees{/user}","branches_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/branches{/branch}","tags_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/tags","blobs_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/statuses/{sha}","languages_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/languages","stargazers_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/stargazers","contributors_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/contributors","subscribers_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/subscribers","subscription_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/subscription","commits_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/contents/{+path}","compare_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/merges","archive_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/downloads","issues_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/issues{/number}","pulls_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls{/number}","milestones_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/milestones{/number}","notifications_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/labels{/name}","releases_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/releases{/id}","deployments_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/deployments","created_at":"2017-04-04T16:38:01Z","updated_at":"2017-04-04T17:23:52Z","pushed_at":"2017-04-17T17:16:27Z","git_url":"git://github.com/gabrielbursztein/FirstProject.git","ssh_url":"git@github.com:gabrielbursztein/FirstProject.git","clone_url":"https://github.com/gabrielbursztein/FirstProject.git","svn_url":"https://github.com/gabrielbursztein/FirstProject","homepage":null,"size":60,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"gabrielbursztein:master","ref":"master","sha":"98c2f2bcca2d729d41aaa26920cb5876c08e5398","user":{"login":"gabrielbursztein","id":26905199,"avatar_url":"https://avatars0.githubusercontent.com/u/26905199?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielbursztein","html_url":"https://github.com/gabrielbursztein","followers_url":"https://api.github.com/users/gabrielbursztein/followers","following_url":"https://api.github.com/users/gabrielbursztein/following{/other_user}","gists_url":"https://api.github.com/users/gabrielbursztein/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielbursztein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielbursztein/subscriptions","organizations_url":"https://api.github.com/users/gabrielbursztein/orgs","repos_url":"https://api.github.com/users/gabrielbursztein/repos","events_url":"https://api.github.com/users/gabrielbursztein/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielbursztein/received_events","type":"User","site_admin":false},"repo":{"id":87211178,"name":"FirstProject","full_name":"gabrielbursztein/FirstProject","owner":{"login":"gabrielbursztein","id":26905199,"avatar_url":"https://avatars0.githubusercontent.com/u/26905199?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielbursztein","html_url":"https://github.com/gabrielbursztein","followers_url":"https://api.github.com/users/gabrielbursztein/followers","following_url":"https://api.github.com/users/gabrielbursztein/following{/other_user}","gists_url":"https://api.github.com/users/gabrielbursztein/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielbursztein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielbursztein/subscriptions","organizations_url":"https://api.github.com/users/gabrielbursztein/orgs","repos_url":"https://api.github.com/users/gabrielbursztein/repos","events_url":"https://api.github.com/users/gabrielbursztein/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielbursztein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabrielbursztein/FirstProject","description":null,"fork":false,"url":"https://api.github.com/repos/gabrielbursztein/FirstProject","forks_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/forks","keys_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/teams","hooks_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/hooks","issue_events_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/issues/events{/number}","events_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/events","assignees_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/assignees{/user}","branches_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/branches{/branch}","tags_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/tags","blobs_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/statuses/{sha}","languages_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/languages","stargazers_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/stargazers","contributors_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/contributors","subscribers_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/subscribers","subscription_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/subscription","commits_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/contents/{+path}","compare_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/merges","archive_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/downloads","issues_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/issues{/number}","pulls_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls{/number}","milestones_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/milestones{/number}","notifications_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/labels{/name}","releases_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/releases{/id}","deployments_url":"https://api.github.com/repos/gabrielbursztein/FirstProject/deployments","created_at":"2017-04-04T16:38:01Z","updated_at":"2017-04-04T17:23:52Z","pushed_at":"2017-04-17T17:16:27Z","git_url":"git://github.com/gabrielbursztein/FirstProject.git","ssh_url":"git@github.com:gabrielbursztein/FirstProject.git","clone_url":"https://github.com/gabrielbursztein/FirstProject.git","svn_url":"https://github.com/gabrielbursztein/FirstProject","homepage":null,"size":60,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/9"},"html":{"href":"https://github.com/gabrielbursztein/FirstProject/pull/9"},"issue":{"href":"https://api.github.com/repos/gabrielbursztein/FirstProject/issues/9"},"comments":{"href":"https://api.github.com/repos/gabrielbursztein/FirstProject/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gabrielbursztein/FirstProject/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/gabrielbursztein/FirstProject/statuses/eafaf3a9174ceb89655ec7a1aab468ccc91e13f8"}}}}
{"actor":{"display_login":"santiagovidal"}}