{"action":"created","comment":{"url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/comments/44582567","id":44582567,"diff_hunk":"@@ -0,0 +1,52 @@\n+angular.module('Krusenstern').controller('HotelsAdminController', function($scope, $resource) {\n+  var Hotel = $resource(\n+    'https://api.parse.com/1/classes/Hotel/:objectId',\n+    {objectId: '@objectId'},\n+    {\n+      query: {\n+        isArray: true,\n+        transformResponse: function(data) { return angular.fromJson(data).results }\n+      },\n+      create: {method: 'POST'},\n+      update: {method: 'PUT'}\n+    }\n+  );\n+\n+  var master = [];\n+\n+  $scope.hotels = Hotel.query();\n+  $scope.newHotel = new Hotel();\n+\n+  $scope.create = function() {\n+    var copy = angular.copy($scope.newHotel);\n+\n+    copy.$create().then(function() {\n+      $scope.hotels.push(angular.extend(copy, $scope.newHotel));\n+      $scope.newHotel = new Hotel();\n+    });\n+  }\n+\n+  $scope.edit = function(index) {","path":"app/hotels/admin.js","position":29,"original_position":29,"commit_id":"a2c3c74f833b448b0bd28661c68934f5d093dd5e","original_commit_id":"a2c3c74f833b448b0bd28661c68934f5d093dd5e","user":{"login":"anaumov","id":1510570,"avatar_url":"https://avatars.githubusercontent.com/u/1510570?v=3","gravatar_id":"","url":"https://api.github.com/users/anaumov","html_url":"https://github.com/anaumov","followers_url":"https://api.github.com/users/anaumov/followers","following_url":"https://api.github.com/users/anaumov/following{/other_user}","gists_url":"https://api.github.com/users/anaumov/gists{/gist_id}","starred_url":"https://api.github.com/users/anaumov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anaumov/subscriptions","organizations_url":"https://api.github.com/users/anaumov/orgs","repos_url":"https://api.github.com/users/anaumov/repos","events_url":"https://api.github.com/users/anaumov/events{/privacy}","received_events_url":"https://api.github.com/users/anaumov/received_events","type":"User","site_admin":false},"body":"я не против индекса, я говорю, что можно передавать отель, чтобы не искать два раза.","created_at":"2015-11-11T20:35:32Z","updated_at":"2015-11-11T20:35:32Z","html_url":"https://github.com/vasilenko/krusenstern/pull/4#discussion_r44582567","pull_request_url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/comments/44582567"},"html":{"href":"https://github.com/vasilenko/krusenstern/pull/4#discussion_r44582567"},"pull_request":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/4","id":50315156,"html_url":"https://github.com/vasilenko/krusenstern/pull/4","diff_url":"https://github.com/vasilenko/krusenstern/pull/4.diff","patch_url":"https://github.com/vasilenko/krusenstern/pull/4.patch","issue_url":"https://api.github.com/repos/vasilenko/krusenstern/issues/4","number":4,"state":"closed","locked":false,"title":"Занятие #4: Принципы работы Angular","user":{"login":"vasilenko","id":465457,"avatar_url":"https://avatars.githubusercontent.com/u/465457?v=3","gravatar_id":"","url":"https://api.github.com/users/vasilenko","html_url":"https://github.com/vasilenko","followers_url":"https://api.github.com/users/vasilenko/followers","following_url":"https://api.github.com/users/vasilenko/following{/other_user}","gists_url":"https://api.github.com/users/vasilenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vasilenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasilenko/subscriptions","organizations_url":"https://api.github.com/users/vasilenko/orgs","repos_url":"https://api.github.com/users/vasilenko/repos","events_url":"https://api.github.com/users/vasilenko/events{/privacy}","received_events_url":"https://api.github.com/users/vasilenko/received_events","type":"User","site_admin":false},"body":"* Выбор мест осуществляется на основе выбранной страны (и в фильтре, и в форме создания тура);\r\n* Отели:\r\n  * CRUD;\r\n  * Привязка к турам.","created_at":"2015-11-10T21:40:32Z","updated_at":"2015-11-11T20:35:32Z","closed_at":"2015-11-11T10:13:33Z","merged_at":"2015-11-11T10:13:33Z","merge_commit_sha":"f4eb24e08daa5e847b7a57b4e99681e1e179913a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/4/commits","review_comments_url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/4/comments","review_comment_url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vasilenko/krusenstern/issues/4/comments","statuses_url":"https://api.github.com/repos/vasilenko/krusenstern/statuses/a2c3c74f833b448b0bd28661c68934f5d093dd5e","head":{"label":"vasilenko:lesson-4","ref":"lesson-4","sha":"a2c3c74f833b448b0bd28661c68934f5d093dd5e","user":{"login":"vasilenko","id":465457,"avatar_url":"https://avatars.githubusercontent.com/u/465457?v=3","gravatar_id":"","url":"https://api.github.com/users/vasilenko","html_url":"https://github.com/vasilenko","followers_url":"https://api.github.com/users/vasilenko/followers","following_url":"https://api.github.com/users/vasilenko/following{/other_user}","gists_url":"https://api.github.com/users/vasilenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vasilenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasilenko/subscriptions","organizations_url":"https://api.github.com/users/vasilenko/orgs","repos_url":"https://api.github.com/users/vasilenko/repos","events_url":"https://api.github.com/users/vasilenko/events{/privacy}","received_events_url":"https://api.github.com/users/vasilenko/received_events","type":"User","site_admin":false},"repo":{"id":44252661,"name":"krusenstern","full_name":"vasilenko/krusenstern","owner":{"login":"vasilenko","id":465457,"avatar_url":"https://avatars.githubusercontent.com/u/465457?v=3","gravatar_id":"","url":"https://api.github.com/users/vasilenko","html_url":"https://github.com/vasilenko","followers_url":"https://api.github.com/users/vasilenko/followers","following_url":"https://api.github.com/users/vasilenko/following{/other_user}","gists_url":"https://api.github.com/users/vasilenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vasilenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasilenko/subscriptions","organizations_url":"https://api.github.com/users/vasilenko/orgs","repos_url":"https://api.github.com/users/vasilenko/repos","events_url":"https://api.github.com/users/vasilenko/events{/privacy}","received_events_url":"https://api.github.com/users/vasilenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vasilenko/krusenstern","description":"Explorer who led the first Russian circumnavigation of the globe","fork":false,"url":"https://api.github.com/repos/vasilenko/krusenstern","forks_url":"https://api.github.com/repos/vasilenko/krusenstern/forks","keys_url":"https://api.github.com/repos/vasilenko/krusenstern/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vasilenko/krusenstern/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vasilenko/krusenstern/teams","hooks_url":"https://api.github.com/repos/vasilenko/krusenstern/hooks","issue_events_url":"https://api.github.com/repos/vasilenko/krusenstern/issues/events{/number}","events_url":"https://api.github.com/repos/vasilenko/krusenstern/events","assignees_url":"https://api.github.com/repos/vasilenko/krusenstern/assignees{/user}","branches_url":"https://api.github.com/repos/vasilenko/krusenstern/branches{/branch}","tags_url":"https://api.github.com/repos/vasilenko/krusenstern/tags","blobs_url":"https://api.github.com/repos/vasilenko/krusenstern/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vasilenko/krusenstern/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vasilenko/krusenstern/git/refs{/sha}","trees_url":"https://api.github.com/repos/vasilenko/krusenstern/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vasilenko/krusenstern/statuses/{sha}","languages_url":"https://api.github.com/repos/vasilenko/krusenstern/languages","stargazers_url":"https://api.github.com/repos/vasilenko/krusenstern/stargazers","contributors_url":"https://api.github.com/repos/vasilenko/krusenstern/contributors","subscribers_url":"https://api.github.com/repos/vasilenko/krusenstern/subscribers","subscription_url":"https://api.github.com/repos/vasilenko/krusenstern/subscription","commits_url":"https://api.github.com/repos/vasilenko/krusenstern/commits{/sha}","git_commits_url":"https://api.github.com/repos/vasilenko/krusenstern/git/commits{/sha}","comments_url":"https://api.github.com/repos/vasilenko/krusenstern/comments{/number}","issue_comment_url":"https://api.github.com/repos/vasilenko/krusenstern/issues/comments{/number}","contents_url":"https://api.github.com/repos/vasilenko/krusenstern/contents/{+path}","compare_url":"https://api.github.com/repos/vasilenko/krusenstern/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vasilenko/krusenstern/merges","archive_url":"https://api.github.com/repos/vasilenko/krusenstern/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vasilenko/krusenstern/downloads","issues_url":"https://api.github.com/repos/vasilenko/krusenstern/issues{/number}","pulls_url":"https://api.github.com/repos/vasilenko/krusenstern/pulls{/number}","milestones_url":"https://api.github.com/repos/vasilenko/krusenstern/milestones{/number}","notifications_url":"https://api.github.com/repos/vasilenko/krusenstern/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vasilenko/krusenstern/labels{/name}","releases_url":"https://api.github.com/repos/vasilenko/krusenstern/releases{/id}","created_at":"2015-10-14T14:21:13Z","updated_at":"2015-10-16T18:32:12Z","pushed_at":"2015-11-11T10:13:33Z","git_url":"git://github.com/vasilenko/krusenstern.git","ssh_url":"git@github.com:vasilenko/krusenstern.git","clone_url":"https://github.com/vasilenko/krusenstern.git","svn_url":"https://github.com/vasilenko/krusenstern","homepage":"http://vasilenko.github.io/krusenstern/","size":228,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"vasilenko:master","ref":"master","sha":"f153f8eaafd809ae6b0d6b71d9317c94f93b223f","user":{"login":"vasilenko","id":465457,"avatar_url":"https://avatars.githubusercontent.com/u/465457?v=3","gravatar_id":"","url":"https://api.github.com/users/vasilenko","html_url":"https://github.com/vasilenko","followers_url":"https://api.github.com/users/vasilenko/followers","following_url":"https://api.github.com/users/vasilenko/following{/other_user}","gists_url":"https://api.github.com/users/vasilenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vasilenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasilenko/subscriptions","organizations_url":"https://api.github.com/users/vasilenko/orgs","repos_url":"https://api.github.com/users/vasilenko/repos","events_url":"https://api.github.com/users/vasilenko/events{/privacy}","received_events_url":"https://api.github.com/users/vasilenko/received_events","type":"User","site_admin":false},"repo":{"id":44252661,"name":"krusenstern","full_name":"vasilenko/krusenstern","owner":{"login":"vasilenko","id":465457,"avatar_url":"https://avatars.githubusercontent.com/u/465457?v=3","gravatar_id":"","url":"https://api.github.com/users/vasilenko","html_url":"https://github.com/vasilenko","followers_url":"https://api.github.com/users/vasilenko/followers","following_url":"https://api.github.com/users/vasilenko/following{/other_user}","gists_url":"https://api.github.com/users/vasilenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vasilenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasilenko/subscriptions","organizations_url":"https://api.github.com/users/vasilenko/orgs","repos_url":"https://api.github.com/users/vasilenko/repos","events_url":"https://api.github.com/users/vasilenko/events{/privacy}","received_events_url":"https://api.github.com/users/vasilenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vasilenko/krusenstern","description":"Explorer who led the first Russian circumnavigation of the globe","fork":false,"url":"https://api.github.com/repos/vasilenko/krusenstern","forks_url":"https://api.github.com/repos/vasilenko/krusenstern/forks","keys_url":"https://api.github.com/repos/vasilenko/krusenstern/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vasilenko/krusenstern/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vasilenko/krusenstern/teams","hooks_url":"https://api.github.com/repos/vasilenko/krusenstern/hooks","issue_events_url":"https://api.github.com/repos/vasilenko/krusenstern/issues/events{/number}","events_url":"https://api.github.com/repos/vasilenko/krusenstern/events","assignees_url":"https://api.github.com/repos/vasilenko/krusenstern/assignees{/user}","branches_url":"https://api.github.com/repos/vasilenko/krusenstern/branches{/branch}","tags_url":"https://api.github.com/repos/vasilenko/krusenstern/tags","blobs_url":"https://api.github.com/repos/vasilenko/krusenstern/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vasilenko/krusenstern/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vasilenko/krusenstern/git/refs{/sha}","trees_url":"https://api.github.com/repos/vasilenko/krusenstern/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vasilenko/krusenstern/statuses/{sha}","languages_url":"https://api.github.com/repos/vasilenko/krusenstern/languages","stargazers_url":"https://api.github.com/repos/vasilenko/krusenstern/stargazers","contributors_url":"https://api.github.com/repos/vasilenko/krusenstern/contributors","subscribers_url":"https://api.github.com/repos/vasilenko/krusenstern/subscribers","subscription_url":"https://api.github.com/repos/vasilenko/krusenstern/subscription","commits_url":"https://api.github.com/repos/vasilenko/krusenstern/commits{/sha}","git_commits_url":"https://api.github.com/repos/vasilenko/krusenstern/git/commits{/sha}","comments_url":"https://api.github.com/repos/vasilenko/krusenstern/comments{/number}","issue_comment_url":"https://api.github.com/repos/vasilenko/krusenstern/issues/comments{/number}","contents_url":"https://api.github.com/repos/vasilenko/krusenstern/contents/{+path}","compare_url":"https://api.github.com/repos/vasilenko/krusenstern/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vasilenko/krusenstern/merges","archive_url":"https://api.github.com/repos/vasilenko/krusenstern/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vasilenko/krusenstern/downloads","issues_url":"https://api.github.com/repos/vasilenko/krusenstern/issues{/number}","pulls_url":"https://api.github.com/repos/vasilenko/krusenstern/pulls{/number}","milestones_url":"https://api.github.com/repos/vasilenko/krusenstern/milestones{/number}","notifications_url":"https://api.github.com/repos/vasilenko/krusenstern/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vasilenko/krusenstern/labels{/name}","releases_url":"https://api.github.com/repos/vasilenko/krusenstern/releases{/id}","created_at":"2015-10-14T14:21:13Z","updated_at":"2015-10-16T18:32:12Z","pushed_at":"2015-11-11T10:13:33Z","git_url":"git://github.com/vasilenko/krusenstern.git","ssh_url":"git@github.com:vasilenko/krusenstern.git","clone_url":"https://github.com/vasilenko/krusenstern.git","svn_url":"https://github.com/vasilenko/krusenstern","homepage":"http://vasilenko.github.io/krusenstern/","size":228,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/4"},"html":{"href":"https://github.com/vasilenko/krusenstern/pull/4"},"issue":{"href":"https://api.github.com/repos/vasilenko/krusenstern/issues/4"},"comments":{"href":"https://api.github.com/repos/vasilenko/krusenstern/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/vasilenko/krusenstern/statuses/a2c3c74f833b448b0bd28661c68934f5d093dd5e"}}}}