{"action":"created","comment":{"url":"https://api.github.com/repos/rexthecat/angular-travel/pulls/comments/42325137","id":42325137,"diff_hunk":"@@ -0,0 +1,81 @@\n+<!DOCTYPE html>\n+<html ng-app=\"tnTour\">\n+\n+<head>\n+  <meta charset=\"utf-8\">\n+  <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n+  <title>Welcome to ThTour!</title>\n+  <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css\">\n+  <script src=\"https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js\"></script>\n+  <link rel=\"stylesheet\" href=\"style.css\"/>\n+</head>\n+\n+<body ng-controller=\"MainController\">\n+<header class=\"header\">\n+  <div class=\"container clearfix\">\n+    <a class=\"header__logoLink pull-left\" href=\"#\">\n+      <span class=\"header__brand\">ThTour</span>\n+    </a>\n+    <button class=\"btn btn-default btn--createTour pull-right\" ng-click=\"showForm = !showForm\" ng-disabled=\"showForm\"\n+            ng-class=\"{disabled: showForm}\">Добавить тур</button>\n+  </div>\n+</header>\n+<main class=\"main\">\n+  <div class=\"container\" ng-show=\"showForm\">\n+    <form>\n+      <div class=\"row\">\n+        <div class=\"form-group col-lg-6 col-md-6 col-xs-12\">\n+          <input class=\"form-control\" type=\"text\" placeholder=\"Название тура\" ng-model=\"newTour.title\">\n+        </div>\n+      </div>\n+      <div class=\"row\">\n+        <div class=\"form-group col-lg-4 col-md-4 col-xs-12\">\n+          <input class=\"form-control\" type=\"number\" placeholder=\"Цена\" ng-model=\"newTour.price\">\n+        </div>\n+      </div>\n+      <div class=\"row\">\n+        <div class=\"form-group col-lg-12 col-md-12 col-xs-12\">\n+        <textarea class=\"form-control\" type=\"text\" rows=\"5\" placeholder=\"Описание тура\"\n+                  ng-model=\"newTour.text\"></textarea>\n+        </div>\n+      </div>\n+      <div class=\"form-group\">\n+        <button class=\"btn btn-default\" type=\"button\" ng-click=\"addTour()\">Добавить</button>\n+        <button class=\"btn btn-default\" type=\"button\" ng-click=\"cancelSave()\">Отменить</button>\n+      </div>\n+    </form>\n+  </div>\n+  <div class=\"container\">\n+    <div class=\"tour\" ng-repeat=\"tour in tours | orderBy:'-'\">\n+        <div class=\"tour__imgWrapper\">\n+          <img class=\"tour__img\" width=\"150\" height=\"150\" src=\"http://placehold.it/150x150\" alt=\"Image of the tour\"/>\n+        </div>\n+        <div class=\"tour__desc\" ng-show=\"!tour.hide\">\n+          <div class=\"clearfix\">\n+            <h2 class=\"pull-left\">{{tour.title}}</h2>\n+            <div class=\"pull-right tour-price\">{{tour.price | currency:\"\": 0}} &#8381;</div>\n+          </div>\n+          <div>{{tour.text}}</div>\n+          <div class=\"btn-group pull-right\">\n+            <button class=\"btn btn-link\" type=\"button\" ng-click=\"editTour(tour)\">Редактировать</button>\n+            <button class=\"btn btn-link\" type=\"button\" ng-click=\"removeTour(tour)\">Удалить</button>","path":"index.html","position":61,"original_position":61,"commit_id":"f9a10a887830e8641b74f095ee38ebb9d946394d","original_commit_id":"f9a10a887830e8641b74f095ee38ebb9d946394d","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":"в итераторе можно использовать переменную `$index`, чтобы потом не искать индекс тура в функции (применимо до тех пор, пока у нас не появятся фильтры и сортировки).","created_at":"2015-10-18T19:30:57Z","updated_at":"2015-10-18T19:30:57Z","html_url":"https://github.com/rexthecat/angular-travel/pull/1#discussion_r42325137","pull_request_url":"https://api.github.com/repos/rexthecat/angular-travel/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/rexthecat/angular-travel/pulls/comments/42325137"},"html":{"href":"https://github.com/rexthecat/angular-travel/pull/1#discussion_r42325137"},"pull_request":{"href":"https://api.github.com/repos/rexthecat/angular-travel/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/rexthecat/angular-travel/pulls/1","id":47903113,"html_url":"https://github.com/rexthecat/angular-travel/pull/1","diff_url":"https://github.com/rexthecat/angular-travel/pull/1.diff","patch_url":"https://github.com/rexthecat/angular-travel/pull/1.patch","issue_url":"https://api.github.com/repos/rexthecat/angular-travel/issues/1","number":1,"state":"open","locked":false,"title":"Display tours, add create, read, update and delete capabilities","user":{"login":"rexthecat","id":15079083,"avatar_url":"https://avatars.githubusercontent.com/u/15079083?v=3","gravatar_id":"","url":"https://api.github.com/users/rexthecat","html_url":"https://github.com/rexthecat","followers_url":"https://api.github.com/users/rexthecat/followers","following_url":"https://api.github.com/users/rexthecat/following{/other_user}","gists_url":"https://api.github.com/users/rexthecat/gists{/gist_id}","starred_url":"https://api.github.com/users/rexthecat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexthecat/subscriptions","organizations_url":"https://api.github.com/users/rexthecat/orgs","repos_url":"https://api.github.com/users/rexthecat/repos","events_url":"https://api.github.com/users/rexthecat/events{/privacy}","received_events_url":"https://api.github.com/users/rexthecat/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-16T12:17:33Z","updated_at":"2015-10-18T19:30:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b680e1f85338edd3ea275ed02ef7ea06c8039336","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rexthecat/angular-travel/pulls/1/commits","review_comments_url":"https://api.github.com/repos/rexthecat/angular-travel/pulls/1/comments","review_comment_url":"https://api.github.com/repos/rexthecat/angular-travel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rexthecat/angular-travel/issues/1/comments","statuses_url":"https://api.github.com/repos/rexthecat/angular-travel/statuses/f9a10a887830e8641b74f095ee38ebb9d946394d","head":{"label":"rexthecat:lesson1","ref":"lesson1","sha":"f9a10a887830e8641b74f095ee38ebb9d946394d","user":{"login":"rexthecat","id":15079083,"avatar_url":"https://avatars.githubusercontent.com/u/15079083?v=3","gravatar_id":"","url":"https://api.github.com/users/rexthecat","html_url":"https://github.com/rexthecat","followers_url":"https://api.github.com/users/rexthecat/followers","following_url":"https://api.github.com/users/rexthecat/following{/other_user}","gists_url":"https://api.github.com/users/rexthecat/gists{/gist_id}","starred_url":"https://api.github.com/users/rexthecat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexthecat/subscriptions","organizations_url":"https://api.github.com/users/rexthecat/orgs","repos_url":"https://api.github.com/users/rexthecat/repos","events_url":"https://api.github.com/users/rexthecat/events{/privacy}","received_events_url":"https://api.github.com/users/rexthecat/received_events","type":"User","site_admin":false},"repo":{"id":44068824,"name":"angular-travel","full_name":"rexthecat/angular-travel","owner":{"login":"rexthecat","id":15079083,"avatar_url":"https://avatars.githubusercontent.com/u/15079083?v=3","gravatar_id":"","url":"https://api.github.com/users/rexthecat","html_url":"https://github.com/rexthecat","followers_url":"https://api.github.com/users/rexthecat/followers","following_url":"https://api.github.com/users/rexthecat/following{/other_user}","gists_url":"https://api.github.com/users/rexthecat/gists{/gist_id}","starred_url":"https://api.github.com/users/rexthecat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexthecat/subscriptions","organizations_url":"https://api.github.com/users/rexthecat/orgs","repos_url":"https://api.github.com/users/rexthecat/repos","events_url":"https://api.github.com/users/rexthecat/events{/privacy}","received_events_url":"https://api.github.com/users/rexthecat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rexthecat/angular-travel","description":"","fork":false,"url":"https://api.github.com/repos/rexthecat/angular-travel","forks_url":"https://api.github.com/repos/rexthecat/angular-travel/forks","keys_url":"https://api.github.com/repos/rexthecat/angular-travel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rexthecat/angular-travel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rexthecat/angular-travel/teams","hooks_url":"https://api.github.com/repos/rexthecat/angular-travel/hooks","issue_events_url":"https://api.github.com/repos/rexthecat/angular-travel/issues/events{/number}","events_url":"https://api.github.com/repos/rexthecat/angular-travel/events","assignees_url":"https://api.github.com/repos/rexthecat/angular-travel/assignees{/user}","branches_url":"https://api.github.com/repos/rexthecat/angular-travel/branches{/branch}","tags_url":"https://api.github.com/repos/rexthecat/angular-travel/tags","blobs_url":"https://api.github.com/repos/rexthecat/angular-travel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rexthecat/angular-travel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rexthecat/angular-travel/git/refs{/sha}","trees_url":"https://api.github.com/repos/rexthecat/angular-travel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rexthecat/angular-travel/statuses/{sha}","languages_url":"https://api.github.com/repos/rexthecat/angular-travel/languages","stargazers_url":"https://api.github.com/repos/rexthecat/angular-travel/stargazers","contributors_url":"https://api.github.com/repos/rexthecat/angular-travel/contributors","subscribers_url":"https://api.github.com/repos/rexthecat/angular-travel/subscribers","subscription_url":"https://api.github.com/repos/rexthecat/angular-travel/subscription","commits_url":"https://api.github.com/repos/rexthecat/angular-travel/commits{/sha}","git_commits_url":"https://api.github.com/repos/rexthecat/angular-travel/git/commits{/sha}","comments_url":"https://api.github.com/repos/rexthecat/angular-travel/comments{/number}","issue_comment_url":"https://api.github.com/repos/rexthecat/angular-travel/issues/comments{/number}","contents_url":"https://api.github.com/repos/rexthecat/angular-travel/contents/{+path}","compare_url":"https://api.github.com/repos/rexthecat/angular-travel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rexthecat/angular-travel/merges","archive_url":"https://api.github.com/repos/rexthecat/angular-travel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rexthecat/angular-travel/downloads","issues_url":"https://api.github.com/repos/rexthecat/angular-travel/issues{/number}","pulls_url":"https://api.github.com/repos/rexthecat/angular-travel/pulls{/number}","milestones_url":"https://api.github.com/repos/rexthecat/angular-travel/milestones{/number}","notifications_url":"https://api.github.com/repos/rexthecat/angular-travel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rexthecat/angular-travel/labels{/name}","releases_url":"https://api.github.com/repos/rexthecat/angular-travel/releases{/id}","created_at":"2015-10-11T20:40:50Z","updated_at":"2015-10-11T20:43:46Z","pushed_at":"2015-10-16T12:17:33Z","git_url":"git://github.com/rexthecat/angular-travel.git","ssh_url":"git@github.com:rexthecat/angular-travel.git","clone_url":"https://github.com/rexthecat/angular-travel.git","svn_url":"https://github.com/rexthecat/angular-travel","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"rexthecat:master","ref":"master","sha":"f57c53c96d61ddf9ab4a3d8786459c9e17b47a2f","user":{"login":"rexthecat","id":15079083,"avatar_url":"https://avatars.githubusercontent.com/u/15079083?v=3","gravatar_id":"","url":"https://api.github.com/users/rexthecat","html_url":"https://github.com/rexthecat","followers_url":"https://api.github.com/users/rexthecat/followers","following_url":"https://api.github.com/users/rexthecat/following{/other_user}","gists_url":"https://api.github.com/users/rexthecat/gists{/gist_id}","starred_url":"https://api.github.com/users/rexthecat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexthecat/subscriptions","organizations_url":"https://api.github.com/users/rexthecat/orgs","repos_url":"https://api.github.com/users/rexthecat/repos","events_url":"https://api.github.com/users/rexthecat/events{/privacy}","received_events_url":"https://api.github.com/users/rexthecat/received_events","type":"User","site_admin":false},"repo":{"id":44068824,"name":"angular-travel","full_name":"rexthecat/angular-travel","owner":{"login":"rexthecat","id":15079083,"avatar_url":"https://avatars.githubusercontent.com/u/15079083?v=3","gravatar_id":"","url":"https://api.github.com/users/rexthecat","html_url":"https://github.com/rexthecat","followers_url":"https://api.github.com/users/rexthecat/followers","following_url":"https://api.github.com/users/rexthecat/following{/other_user}","gists_url":"https://api.github.com/users/rexthecat/gists{/gist_id}","starred_url":"https://api.github.com/users/rexthecat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexthecat/subscriptions","organizations_url":"https://api.github.com/users/rexthecat/orgs","repos_url":"https://api.github.com/users/rexthecat/repos","events_url":"https://api.github.com/users/rexthecat/events{/privacy}","received_events_url":"https://api.github.com/users/rexthecat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rexthecat/angular-travel","description":"","fork":false,"url":"https://api.github.com/repos/rexthecat/angular-travel","forks_url":"https://api.github.com/repos/rexthecat/angular-travel/forks","keys_url":"https://api.github.com/repos/rexthecat/angular-travel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rexthecat/angular-travel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rexthecat/angular-travel/teams","hooks_url":"https://api.github.com/repos/rexthecat/angular-travel/hooks","issue_events_url":"https://api.github.com/repos/rexthecat/angular-travel/issues/events{/number}","events_url":"https://api.github.com/repos/rexthecat/angular-travel/events","assignees_url":"https://api.github.com/repos/rexthecat/angular-travel/assignees{/user}","branches_url":"https://api.github.com/repos/rexthecat/angular-travel/branches{/branch}","tags_url":"https://api.github.com/repos/rexthecat/angular-travel/tags","blobs_url":"https://api.github.com/repos/rexthecat/angular-travel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rexthecat/angular-travel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rexthecat/angular-travel/git/refs{/sha}","trees_url":"https://api.github.com/repos/rexthecat/angular-travel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rexthecat/angular-travel/statuses/{sha}","languages_url":"https://api.github.com/repos/rexthecat/angular-travel/languages","stargazers_url":"https://api.github.com/repos/rexthecat/angular-travel/stargazers","contributors_url":"https://api.github.com/repos/rexthecat/angular-travel/contributors","subscribers_url":"https://api.github.com/repos/rexthecat/angular-travel/subscribers","subscription_url":"https://api.github.com/repos/rexthecat/angular-travel/subscription","commits_url":"https://api.github.com/repos/rexthecat/angular-travel/commits{/sha}","git_commits_url":"https://api.github.com/repos/rexthecat/angular-travel/git/commits{/sha}","comments_url":"https://api.github.com/repos/rexthecat/angular-travel/comments{/number}","issue_comment_url":"https://api.github.com/repos/rexthecat/angular-travel/issues/comments{/number}","contents_url":"https://api.github.com/repos/rexthecat/angular-travel/contents/{+path}","compare_url":"https://api.github.com/repos/rexthecat/angular-travel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rexthecat/angular-travel/merges","archive_url":"https://api.github.com/repos/rexthecat/angular-travel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rexthecat/angular-travel/downloads","issues_url":"https://api.github.com/repos/rexthecat/angular-travel/issues{/number}","pulls_url":"https://api.github.com/repos/rexthecat/angular-travel/pulls{/number}","milestones_url":"https://api.github.com/repos/rexthecat/angular-travel/milestones{/number}","notifications_url":"https://api.github.com/repos/rexthecat/angular-travel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rexthecat/angular-travel/labels{/name}","releases_url":"https://api.github.com/repos/rexthecat/angular-travel/releases{/id}","created_at":"2015-10-11T20:40:50Z","updated_at":"2015-10-11T20:43:46Z","pushed_at":"2015-10-16T12:17:33Z","git_url":"git://github.com/rexthecat/angular-travel.git","ssh_url":"git@github.com:rexthecat/angular-travel.git","clone_url":"https://github.com/rexthecat/angular-travel.git","svn_url":"https://github.com/rexthecat/angular-travel","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/rexthecat/angular-travel/pulls/1"},"html":{"href":"https://github.com/rexthecat/angular-travel/pull/1"},"issue":{"href":"https://api.github.com/repos/rexthecat/angular-travel/issues/1"},"comments":{"href":"https://api.github.com/repos/rexthecat/angular-travel/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/rexthecat/angular-travel/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/rexthecat/angular-travel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rexthecat/angular-travel/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/rexthecat/angular-travel/statuses/f9a10a887830e8641b74f095ee38ebb9d946394d"}}}}