{"action":"created","comment":{"url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/comments/62899572","id":62899572,"diff_hunk":"@@ -1,8 +1,23 @@\n - if answer.persisted?\n-  li.list-group-item\n-    h4.text-center= @question.answers.index(answer) + 1\n-    h5= answer.body\n-    h6.text-right\n-      - if able_to_delete? answer\n-        = link_to 'Delete answer', answer_path(answer), method: :delete, class: 'btn-sm btn-default'\n-  hr\n+  li.list-group-item id=\"answer-row-#{answer.id}\"\n+    div id=\"answer-#{answer.id}\" \n+      - if answer.accepted?\n+        b Accepted\n+      h5= answer.body\n+      h6.text-right\n+        - if (current_user && current_user.author_of?(@question)) && answer.accepted?\n+          = button_to \"Accept\", accept_answer_path(answer), remote: true, class: 'btn btn-default button-accept accept-hidden', id: \"accept-#{answer.id}\"","path":"app/views/answers/_answer.html.slim","position":16,"original_position":16,"commit_id":"a4dc8c3c7b8ceffcb88e874e259326c37f972f4b","original_commit_id":"a4dc8c3c7b8ceffcb88e874e259326c37f972f4b","user":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"body":"Пожалуй, текст ссылки тут должен быть другой","created_at":"2016-05-11T18:21:30Z","updated_at":"2016-05-11T18:21:30Z","html_url":"https://github.com/ignatbagaev/thnkntc/pull/6#discussion_r62899572","pull_request_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/comments/62899572"},"html":{"href":"https://github.com/ignatbagaev/thnkntc/pull/6#discussion_r62899572"},"pull_request":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/6","id":69668216,"html_url":"https://github.com/ignatbagaev/thnkntc/pull/6","diff_url":"https://github.com/ignatbagaev/thnkntc/pull/6.diff","patch_url":"https://github.com/ignatbagaev/thnkntc/pull/6.patch","issue_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/6","number":6,"state":"open","locked":false,"title":"Lesson 7 ajax part2","user":{"login":"ignatbagaev","id":13698037,"avatar_url":"https://avatars.githubusercontent.com/u/13698037?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatbagaev","html_url":"https://github.com/ignatbagaev","followers_url":"https://api.github.com/users/ignatbagaev/followers","following_url":"https://api.github.com/users/ignatbagaev/following{/other_user}","gists_url":"https://api.github.com/users/ignatbagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatbagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatbagaev/subscriptions","organizations_url":"https://api.github.com/users/ignatbagaev/orgs","repos_url":"https://api.github.com/users/ignatbagaev/repos","events_url":"https://api.github.com/users/ignatbagaev/events{/privacy}","received_events_url":"https://api.github.com/users/ignatbagaev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-11T13:05:10Z","updated_at":"2016-05-11T18:21:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6881ec9848e6843b8bf35dd517c1b3e6cdd915ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/6/commits","review_comments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/6/comments","review_comment_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/6/comments","statuses_url":"https://api.github.com/repos/ignatbagaev/thnkntc/statuses/a4dc8c3c7b8ceffcb88e874e259326c37f972f4b","head":{"label":"ignatbagaev:lesson-7_AJAX-part2","ref":"lesson-7_AJAX-part2","sha":"a4dc8c3c7b8ceffcb88e874e259326c37f972f4b","user":{"login":"ignatbagaev","id":13698037,"avatar_url":"https://avatars.githubusercontent.com/u/13698037?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatbagaev","html_url":"https://github.com/ignatbagaev","followers_url":"https://api.github.com/users/ignatbagaev/followers","following_url":"https://api.github.com/users/ignatbagaev/following{/other_user}","gists_url":"https://api.github.com/users/ignatbagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatbagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatbagaev/subscriptions","organizations_url":"https://api.github.com/users/ignatbagaev/orgs","repos_url":"https://api.github.com/users/ignatbagaev/repos","events_url":"https://api.github.com/users/ignatbagaev/events{/privacy}","received_events_url":"https://api.github.com/users/ignatbagaev/received_events","type":"User","site_admin":false},"repo":{"id":57127069,"name":"thnkntc","full_name":"ignatbagaev/thnkntc","owner":{"login":"ignatbagaev","id":13698037,"avatar_url":"https://avatars.githubusercontent.com/u/13698037?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatbagaev","html_url":"https://github.com/ignatbagaev","followers_url":"https://api.github.com/users/ignatbagaev/followers","following_url":"https://api.github.com/users/ignatbagaev/following{/other_user}","gists_url":"https://api.github.com/users/ignatbagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatbagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatbagaev/subscriptions","organizations_url":"https://api.github.com/users/ignatbagaev/orgs","repos_url":"https://api.github.com/users/ignatbagaev/repos","events_url":"https://api.github.com/users/ignatbagaev/events{/privacy}","received_events_url":"https://api.github.com/users/ignatbagaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ignatbagaev/thnkntc","description":"","fork":false,"url":"https://api.github.com/repos/ignatbagaev/thnkntc","forks_url":"https://api.github.com/repos/ignatbagaev/thnkntc/forks","keys_url":"https://api.github.com/repos/ignatbagaev/thnkntc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ignatbagaev/thnkntc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ignatbagaev/thnkntc/teams","hooks_url":"https://api.github.com/repos/ignatbagaev/thnkntc/hooks","issue_events_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/events{/number}","events_url":"https://api.github.com/repos/ignatbagaev/thnkntc/events","assignees_url":"https://api.github.com/repos/ignatbagaev/thnkntc/assignees{/user}","branches_url":"https://api.github.com/repos/ignatbagaev/thnkntc/branches{/branch}","tags_url":"https://api.github.com/repos/ignatbagaev/thnkntc/tags","blobs_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ignatbagaev/thnkntc/statuses/{sha}","languages_url":"https://api.github.com/repos/ignatbagaev/thnkntc/languages","stargazers_url":"https://api.github.com/repos/ignatbagaev/thnkntc/stargazers","contributors_url":"https://api.github.com/repos/ignatbagaev/thnkntc/contributors","subscribers_url":"https://api.github.com/repos/ignatbagaev/thnkntc/subscribers","subscription_url":"https://api.github.com/repos/ignatbagaev/thnkntc/subscription","commits_url":"https://api.github.com/repos/ignatbagaev/thnkntc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ignatbagaev/thnkntc/contents/{+path}","compare_url":"https://api.github.com/repos/ignatbagaev/thnkntc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ignatbagaev/thnkntc/merges","archive_url":"https://api.github.com/repos/ignatbagaev/thnkntc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ignatbagaev/thnkntc/downloads","issues_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues{/number}","pulls_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls{/number}","milestones_url":"https://api.github.com/repos/ignatbagaev/thnkntc/milestones{/number}","notifications_url":"https://api.github.com/repos/ignatbagaev/thnkntc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ignatbagaev/thnkntc/labels{/name}","releases_url":"https://api.github.com/repos/ignatbagaev/thnkntc/releases{/id}","deployments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/deployments","created_at":"2016-04-26T12:39:21Z","updated_at":"2016-04-26T12:39:40Z","pushed_at":"2016-05-11T13:15:18Z","git_url":"git://github.com/ignatbagaev/thnkntc.git","ssh_url":"git@github.com:ignatbagaev/thnkntc.git","clone_url":"https://github.com/ignatbagaev/thnkntc.git","svn_url":"https://github.com/ignatbagaev/thnkntc","homepage":null,"size":112,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ignatbagaev:master","ref":"master","sha":"ce035f3646f91434915c979d91ad897789648310","user":{"login":"ignatbagaev","id":13698037,"avatar_url":"https://avatars.githubusercontent.com/u/13698037?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatbagaev","html_url":"https://github.com/ignatbagaev","followers_url":"https://api.github.com/users/ignatbagaev/followers","following_url":"https://api.github.com/users/ignatbagaev/following{/other_user}","gists_url":"https://api.github.com/users/ignatbagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatbagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatbagaev/subscriptions","organizations_url":"https://api.github.com/users/ignatbagaev/orgs","repos_url":"https://api.github.com/users/ignatbagaev/repos","events_url":"https://api.github.com/users/ignatbagaev/events{/privacy}","received_events_url":"https://api.github.com/users/ignatbagaev/received_events","type":"User","site_admin":false},"repo":{"id":57127069,"name":"thnkntc","full_name":"ignatbagaev/thnkntc","owner":{"login":"ignatbagaev","id":13698037,"avatar_url":"https://avatars.githubusercontent.com/u/13698037?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatbagaev","html_url":"https://github.com/ignatbagaev","followers_url":"https://api.github.com/users/ignatbagaev/followers","following_url":"https://api.github.com/users/ignatbagaev/following{/other_user}","gists_url":"https://api.github.com/users/ignatbagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatbagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatbagaev/subscriptions","organizations_url":"https://api.github.com/users/ignatbagaev/orgs","repos_url":"https://api.github.com/users/ignatbagaev/repos","events_url":"https://api.github.com/users/ignatbagaev/events{/privacy}","received_events_url":"https://api.github.com/users/ignatbagaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ignatbagaev/thnkntc","description":"","fork":false,"url":"https://api.github.com/repos/ignatbagaev/thnkntc","forks_url":"https://api.github.com/repos/ignatbagaev/thnkntc/forks","keys_url":"https://api.github.com/repos/ignatbagaev/thnkntc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ignatbagaev/thnkntc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ignatbagaev/thnkntc/teams","hooks_url":"https://api.github.com/repos/ignatbagaev/thnkntc/hooks","issue_events_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/events{/number}","events_url":"https://api.github.com/repos/ignatbagaev/thnkntc/events","assignees_url":"https://api.github.com/repos/ignatbagaev/thnkntc/assignees{/user}","branches_url":"https://api.github.com/repos/ignatbagaev/thnkntc/branches{/branch}","tags_url":"https://api.github.com/repos/ignatbagaev/thnkntc/tags","blobs_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ignatbagaev/thnkntc/statuses/{sha}","languages_url":"https://api.github.com/repos/ignatbagaev/thnkntc/languages","stargazers_url":"https://api.github.com/repos/ignatbagaev/thnkntc/stargazers","contributors_url":"https://api.github.com/repos/ignatbagaev/thnkntc/contributors","subscribers_url":"https://api.github.com/repos/ignatbagaev/thnkntc/subscribers","subscription_url":"https://api.github.com/repos/ignatbagaev/thnkntc/subscription","commits_url":"https://api.github.com/repos/ignatbagaev/thnkntc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ignatbagaev/thnkntc/contents/{+path}","compare_url":"https://api.github.com/repos/ignatbagaev/thnkntc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ignatbagaev/thnkntc/merges","archive_url":"https://api.github.com/repos/ignatbagaev/thnkntc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ignatbagaev/thnkntc/downloads","issues_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues{/number}","pulls_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls{/number}","milestones_url":"https://api.github.com/repos/ignatbagaev/thnkntc/milestones{/number}","notifications_url":"https://api.github.com/repos/ignatbagaev/thnkntc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ignatbagaev/thnkntc/labels{/name}","releases_url":"https://api.github.com/repos/ignatbagaev/thnkntc/releases{/id}","deployments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/deployments","created_at":"2016-04-26T12:39:21Z","updated_at":"2016-04-26T12:39:40Z","pushed_at":"2016-05-11T13:15:18Z","git_url":"git://github.com/ignatbagaev/thnkntc.git","ssh_url":"git@github.com:ignatbagaev/thnkntc.git","clone_url":"https://github.com/ignatbagaev/thnkntc.git","svn_url":"https://github.com/ignatbagaev/thnkntc","homepage":null,"size":112,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/6"},"html":{"href":"https://github.com/ignatbagaev/thnkntc/pull/6"},"issue":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/6"},"comments":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/statuses/a4dc8c3c7b8ceffcb88e874e259326c37f972f4b"}}}}