{"action":"created","comment":{"url":"https://api.github.com/repos/mrvovanness/flashcard/pulls/comments/27390905","id":27390905,"diff_hunk":"@@ -0,0 +1,26 @@\n+<table class=\"table table-striped\">\n+  <tr>\n+    <th>Название колоды</th>\n+    <th>\n+      <%= simple_form_for current_user, url: user_profile_path, method: :patch do |f| %>\n+        <%= f.hidden_field :current_deck_id, value: nil  %>\n+        <%= f.button :submit, \"Отказаться от текущей колоды\", class: \"btn btn-default btn-xs\" %>\n+      <% end %>\n+    </th>\n+  </tr>\n+  <% @decks.each do |deck| %>\n+    <tr>\n+      <td><%= deck.name %></td>\n+      <td>\n+        <% if deck.current? %>\n+          <b> Текущая колода</b>\n+        <% else %>\n+          <%= simple_form_for current_user, url: user_profile_path, method: :patch do |f| %>\n+            <%= f.hidden_field :current_deck_id, value: deck.id %>\n+            <%= f.button :submit, \"Сделать текущей\", class: \"btn btn-primary btn-xs\" %>\n+          <% end %>","path":"app/views/decks/index.html.erb","position":21,"original_position":21,"commit_id":"f000113f911fc85ee6d18e8db2edd8965b220d95","original_commit_id":"f000113f911fc85ee6d18e8db2edd8965b220d95","user":{"login":"Fodoj","id":78866,"avatar_url":"https://avatars.githubusercontent.com/u/78866?v=3","gravatar_id":"","url":"https://api.github.com/users/Fodoj","html_url":"https://github.com/Fodoj","followers_url":"https://api.github.com/users/Fodoj/followers","following_url":"https://api.github.com/users/Fodoj/following{/other_user}","gists_url":"https://api.github.com/users/Fodoj/gists{/gist_id}","starred_url":"https://api.github.com/users/Fodoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fodoj/subscriptions","organizations_url":"https://api.github.com/users/Fodoj/orgs","repos_url":"https://api.github.com/users/Fodoj/repos","events_url":"https://api.github.com/users/Fodoj/events{/privacy}","received_events_url":"https://api.github.com/users/Fodoj/received_events","type":"User","site_admin":false},"body":"set_current_deck_path(deck_id: deck.id)","created_at":"2015-03-30T13:47:41Z","updated_at":"2015-03-30T13:47:41Z","html_url":"https://github.com/mrvovanness/flashcard/pull/11#discussion_r27390905","pull_request_url":"https://api.github.com/repos/mrvovanness/flashcard/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/mrvovanness/flashcard/pulls/comments/27390905"},"html":{"href":"https://github.com/mrvovanness/flashcard/pull/11#discussion_r27390905"},"pull_request":{"href":"https://api.github.com/repos/mrvovanness/flashcard/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/mrvovanness/flashcard/pulls/11","id":32104759,"html_url":"https://github.com/mrvovanness/flashcard/pull/11","diff_url":"https://github.com/mrvovanness/flashcard/pull/11.diff","patch_url":"https://github.com/mrvovanness/flashcard/pull/11.patch","issue_url":"https://api.github.com/repos/mrvovanness/flashcard/issues/11","number":11,"state":"open","locked":false,"title":"Decks, new tests, js for forms","user":{"login":"mrvovanness","id":10726270,"avatar_url":"https://avatars.githubusercontent.com/u/10726270?v=3","gravatar_id":"","url":"https://api.github.com/users/mrvovanness","html_url":"https://github.com/mrvovanness","followers_url":"https://api.github.com/users/mrvovanness/followers","following_url":"https://api.github.com/users/mrvovanness/following{/other_user}","gists_url":"https://api.github.com/users/mrvovanness/gists{/gist_id}","starred_url":"https://api.github.com/users/mrvovanness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrvovanness/subscriptions","organizations_url":"https://api.github.com/users/mrvovanness/orgs","repos_url":"https://api.github.com/users/mrvovanness/repos","events_url":"https://api.github.com/users/mrvovanness/events{/privacy}","received_events_url":"https://api.github.com/users/mrvovanness/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-27T12:53:25Z","updated_at":"2015-03-30T13:47:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7cabd965c2778fc5d4457f71d4f32cd3af5354eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mrvovanness/flashcard/pulls/11/commits","review_comments_url":"https://api.github.com/repos/mrvovanness/flashcard/pulls/11/comments","review_comment_url":"https://api.github.com/repos/mrvovanness/flashcard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mrvovanness/flashcard/issues/11/comments","statuses_url":"https://api.github.com/repos/mrvovanness/flashcard/statuses/f000113f911fc85ee6d18e8db2edd8965b220d95","head":{"label":"mrvovanness:eleventh-task","ref":"eleventh-task","sha":"f000113f911fc85ee6d18e8db2edd8965b220d95","user":{"login":"mrvovanness","id":10726270,"avatar_url":"https://avatars.githubusercontent.com/u/10726270?v=3","gravatar_id":"","url":"https://api.github.com/users/mrvovanness","html_url":"https://github.com/mrvovanness","followers_url":"https://api.github.com/users/mrvovanness/followers","following_url":"https://api.github.com/users/mrvovanness/following{/other_user}","gists_url":"https://api.github.com/users/mrvovanness/gists{/gist_id}","starred_url":"https://api.github.com/users/mrvovanness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrvovanness/subscriptions","organizations_url":"https://api.github.com/users/mrvovanness/orgs","repos_url":"https://api.github.com/users/mrvovanness/repos","events_url":"https://api.github.com/users/mrvovanness/events{/privacy}","received_events_url":"https://api.github.com/users/mrvovanness/received_events","type":"User","site_admin":false},"repo":{"id":31216808,"name":"flashcard","full_name":"mrvovanness/flashcard","owner":{"login":"mrvovanness","id":10726270,"avatar_url":"https://avatars.githubusercontent.com/u/10726270?v=3","gravatar_id":"","url":"https://api.github.com/users/mrvovanness","html_url":"https://github.com/mrvovanness","followers_url":"https://api.github.com/users/mrvovanness/followers","following_url":"https://api.github.com/users/mrvovanness/following{/other_user}","gists_url":"https://api.github.com/users/mrvovanness/gists{/gist_id}","starred_url":"https://api.github.com/users/mrvovanness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrvovanness/subscriptions","organizations_url":"https://api.github.com/users/mrvovanness/orgs","repos_url":"https://api.github.com/users/mrvovanness/repos","events_url":"https://api.github.com/users/mrvovanness/events{/privacy}","received_events_url":"https://api.github.com/users/mrvovanness/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrvovanness/flashcard","description":"","fork":false,"url":"https://api.github.com/repos/mrvovanness/flashcard","forks_url":"https://api.github.com/repos/mrvovanness/flashcard/forks","keys_url":"https://api.github.com/repos/mrvovanness/flashcard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrvovanness/flashcard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrvovanness/flashcard/teams","hooks_url":"https://api.github.com/repos/mrvovanness/flashcard/hooks","issue_events_url":"https://api.github.com/repos/mrvovanness/flashcard/issues/events{/number}","events_url":"https://api.github.com/repos/mrvovanness/flashcard/events","assignees_url":"https://api.github.com/repos/mrvovanness/flashcard/assignees{/user}","branches_url":"https://api.github.com/repos/mrvovanness/flashcard/branches{/branch}","tags_url":"https://api.github.com/repos/mrvovanness/flashcard/tags","blobs_url":"https://api.github.com/repos/mrvovanness/flashcard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrvovanness/flashcard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrvovanness/flashcard/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrvovanness/flashcard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrvovanness/flashcard/statuses/{sha}","languages_url":"https://api.github.com/repos/mrvovanness/flashcard/languages","stargazers_url":"https://api.github.com/repos/mrvovanness/flashcard/stargazers","contributors_url":"https://api.github.com/repos/mrvovanness/flashcard/contributors","subscribers_url":"https://api.github.com/repos/mrvovanness/flashcard/subscribers","subscription_url":"https://api.github.com/repos/mrvovanness/flashcard/subscription","commits_url":"https://api.github.com/repos/mrvovanness/flashcard/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrvovanness/flashcard/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrvovanness/flashcard/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrvovanness/flashcard/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrvovanness/flashcard/contents/{+path}","compare_url":"https://api.github.com/repos/mrvovanness/flashcard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrvovanness/flashcard/merges","archive_url":"https://api.github.com/repos/mrvovanness/flashcard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrvovanness/flashcard/downloads","issues_url":"https://api.github.com/repos/mrvovanness/flashcard/issues{/number}","pulls_url":"https://api.github.com/repos/mrvovanness/flashcard/pulls{/number}","milestones_url":"https://api.github.com/repos/mrvovanness/flashcard/milestones{/number}","notifications_url":"https://api.github.com/repos/mrvovanness/flashcard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrvovanness/flashcard/labels{/name}","releases_url":"https://api.github.com/repos/mrvovanness/flashcard/releases{/id}","created_at":"2015-02-23T16:24:41Z","updated_at":"2015-03-21T19:54:34Z","pushed_at":"2015-03-30T11:19:35Z","git_url":"git://github.com/mrvovanness/flashcard.git","ssh_url":"git@github.com:mrvovanness/flashcard.git","clone_url":"https://github.com/mrvovanness/flashcard.git","svn_url":"https://github.com/mrvovanness/flashcard","homepage":null,"size":532,"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":"mrvovanness:master","ref":"master","sha":"280ecfc33efd90b50e7e3f1bcb8f17f7359c6f64","user":{"login":"mrvovanness","id":10726270,"avatar_url":"https://avatars.githubusercontent.com/u/10726270?v=3","gravatar_id":"","url":"https://api.github.com/users/mrvovanness","html_url":"https://github.com/mrvovanness","followers_url":"https://api.github.com/users/mrvovanness/followers","following_url":"https://api.github.com/users/mrvovanness/following{/other_user}","gists_url":"https://api.github.com/users/mrvovanness/gists{/gist_id}","starred_url":"https://api.github.com/users/mrvovanness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrvovanness/subscriptions","organizations_url":"https://api.github.com/users/mrvovanness/orgs","repos_url":"https://api.github.com/users/mrvovanness/repos","events_url":"https://api.github.com/users/mrvovanness/events{/privacy}","received_events_url":"https://api.github.com/users/mrvovanness/received_events","type":"User","site_admin":false},"repo":{"id":31216808,"name":"flashcard","full_name":"mrvovanness/flashcard","owner":{"login":"mrvovanness","id":10726270,"avatar_url":"https://avatars.githubusercontent.com/u/10726270?v=3","gravatar_id":"","url":"https://api.github.com/users/mrvovanness","html_url":"https://github.com/mrvovanness","followers_url":"https://api.github.com/users/mrvovanness/followers","following_url":"https://api.github.com/users/mrvovanness/following{/other_user}","gists_url":"https://api.github.com/users/mrvovanness/gists{/gist_id}","starred_url":"https://api.github.com/users/mrvovanness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrvovanness/subscriptions","organizations_url":"https://api.github.com/users/mrvovanness/orgs","repos_url":"https://api.github.com/users/mrvovanness/repos","events_url":"https://api.github.com/users/mrvovanness/events{/privacy}","received_events_url":"https://api.github.com/users/mrvovanness/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrvovanness/flashcard","description":"","fork":false,"url":"https://api.github.com/repos/mrvovanness/flashcard","forks_url":"https://api.github.com/repos/mrvovanness/flashcard/forks","keys_url":"https://api.github.com/repos/mrvovanness/flashcard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrvovanness/flashcard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrvovanness/flashcard/teams","hooks_url":"https://api.github.com/repos/mrvovanness/flashcard/hooks","issue_events_url":"https://api.github.com/repos/mrvovanness/flashcard/issues/events{/number}","events_url":"https://api.github.com/repos/mrvovanness/flashcard/events","assignees_url":"https://api.github.com/repos/mrvovanness/flashcard/assignees{/user}","branches_url":"https://api.github.com/repos/mrvovanness/flashcard/branches{/branch}","tags_url":"https://api.github.com/repos/mrvovanness/flashcard/tags","blobs_url":"https://api.github.com/repos/mrvovanness/flashcard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrvovanness/flashcard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrvovanness/flashcard/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrvovanness/flashcard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrvovanness/flashcard/statuses/{sha}","languages_url":"https://api.github.com/repos/mrvovanness/flashcard/languages","stargazers_url":"https://api.github.com/repos/mrvovanness/flashcard/stargazers","contributors_url":"https://api.github.com/repos/mrvovanness/flashcard/contributors","subscribers_url":"https://api.github.com/repos/mrvovanness/flashcard/subscribers","subscription_url":"https://api.github.com/repos/mrvovanness/flashcard/subscription","commits_url":"https://api.github.com/repos/mrvovanness/flashcard/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrvovanness/flashcard/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrvovanness/flashcard/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrvovanness/flashcard/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrvovanness/flashcard/contents/{+path}","compare_url":"https://api.github.com/repos/mrvovanness/flashcard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrvovanness/flashcard/merges","archive_url":"https://api.github.com/repos/mrvovanness/flashcard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrvovanness/flashcard/downloads","issues_url":"https://api.github.com/repos/mrvovanness/flashcard/issues{/number}","pulls_url":"https://api.github.com/repos/mrvovanness/flashcard/pulls{/number}","milestones_url":"https://api.github.com/repos/mrvovanness/flashcard/milestones{/number}","notifications_url":"https://api.github.com/repos/mrvovanness/flashcard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrvovanness/flashcard/labels{/name}","releases_url":"https://api.github.com/repos/mrvovanness/flashcard/releases{/id}","created_at":"2015-02-23T16:24:41Z","updated_at":"2015-03-21T19:54:34Z","pushed_at":"2015-03-30T11:19:35Z","git_url":"git://github.com/mrvovanness/flashcard.git","ssh_url":"git@github.com:mrvovanness/flashcard.git","clone_url":"https://github.com/mrvovanness/flashcard.git","svn_url":"https://github.com/mrvovanness/flashcard","homepage":null,"size":532,"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/mrvovanness/flashcard/pulls/11"},"html":{"href":"https://github.com/mrvovanness/flashcard/pull/11"},"issue":{"href":"https://api.github.com/repos/mrvovanness/flashcard/issues/11"},"comments":{"href":"https://api.github.com/repos/mrvovanness/flashcard/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/mrvovanness/flashcard/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/mrvovanness/flashcard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mrvovanness/flashcard/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/mrvovanness/flashcard/statuses/f000113f911fc85ee6d18e8db2edd8965b220d95"}}}}