{"action":"created","comment":{"url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/comments/45029955","id":45029955,"diff_hunk":"@@ -55,12 +55,35 @@ angular.module('Krusenstern').controller('ToursAdminController', function($scope\n   });\n \n   var master = [];\n+\n   var findPlaceByCountry = function(country) {\n     return $scope.places.find(function(place) {\n       return place.country.objectId === country.objectId\n     });\n   };\n \n+  var uploadPhoto = function(photo) {\n+    var defered = $q.defer();\n+\n+    if (photo) {\n+      Upload.http({","path":"app/tours/admin.js","position":21,"original_position":21,"commit_id":"b6373f0e3d8288e3708ca4cb9b6a68cbc7aef528","original_commit_id":"b6373f0e3d8288e3708ca4cb9b6a68cbc7aef528","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":"этот сервис  предоставляет ng-file-upload?","created_at":"2015-11-17T07:49:38Z","updated_at":"2015-11-17T07:49:38Z","html_url":"https://github.com/vasilenko/krusenstern/pull/5#discussion_r45029955","pull_request_url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/comments/45029955"},"html":{"href":"https://github.com/vasilenko/krusenstern/pull/5#discussion_r45029955"},"pull_request":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/5","id":50847109,"html_url":"https://github.com/vasilenko/krusenstern/pull/5","diff_url":"https://github.com/vasilenko/krusenstern/pull/5.diff","patch_url":"https://github.com/vasilenko/krusenstern/pull/5.patch","issue_url":"https://api.github.com/repos/vasilenko/krusenstern/issues/5","number":5,"state":"open","locked":false,"title":"Занятие #5: Unit-тестирование","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* Отображение фотографий на странице и в списке туров.","created_at":"2015-11-16T18:30:20Z","updated_at":"2015-11-17T07:49:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bc72fbb9144e9170890dbadd1e05170b14bee09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/5/commits","review_comments_url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/5/comments","review_comment_url":"https://api.github.com/repos/vasilenko/krusenstern/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vasilenko/krusenstern/issues/5/comments","statuses_url":"https://api.github.com/repos/vasilenko/krusenstern/statuses/b6373f0e3d8288e3708ca4cb9b6a68cbc7aef528","head":{"label":"vasilenko:lesson-5","ref":"lesson-5","sha":"b6373f0e3d8288e3708ca4cb9b6a68cbc7aef528","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-16T18:30:21Z","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":41,"stargazers_count":1,"watchers_count":1,"language":"HTML","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":1,"default_branch":"master"}},"base":{"label":"vasilenko:master","ref":"master","sha":"91ebc238e80b74adfc4e5925c31498fbf0220dde","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-16T18:30:21Z","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":41,"stargazers_count":1,"watchers_count":1,"language":"HTML","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/5"},"html":{"href":"https://github.com/vasilenko/krusenstern/pull/5"},"issue":{"href":"https://api.github.com/repos/vasilenko/krusenstern/issues/5"},"comments":{"href":"https://api.github.com/repos/vasilenko/krusenstern/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vasilenko/krusenstern/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/vasilenko/krusenstern/statuses/b6373f0e3d8288e3708ca4cb9b6a68cbc7aef528"}}}}