{"action":"created","comment":{"url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/comments/45318898","id":45318898,"diff_hunk":"@@ -0,0 +1,38 @@\n+'use strict';\n+\n+angular.module('mymovierockingApp')\n+  .controller('MovieDetailCtrl', ['$scope', 'movieHolder', '$location', 'Favorites', function ($scope, movieHolder, $location, Favorites) {\n+    var movie = movieHolder.get();\n+    var starFullClass = 'glyphicon glyphicon-star';\n+    var starEmptyClass = 'glyphicon glyphicon-star-empty';\n+    \n+    $scope.movie = movie;\n+    var imgUrl = 'http://image.tmdb.org/t/p/w500/'+ movie.posterPath +'&api_key=579989834308dc1b0309510990ad9246';\n+    $scope.imgUrl = imgUrl;\n+\n+    $scope.changeView = function(view){\n+      $location.path(view);\n+      movieHolder.save(null);\n+    };\n+\n+    $scope.starClass = function(movie) {\n+      if(Favorites.alreadyAdded(movie.title)) {\n+        return starFullClass;\n+      }\n+      else {","path":"app/scripts/controllers/movieDetailCtrl.js","position":22,"original_position":22,"commit_id":"d85d8b6be44894c236bee2b6b19ae87124b8ebdd","original_commit_id":"d85d8b6be44894c236bee2b6b19ae87124b8ebdd","user":{"login":"facundomerighiglobant","id":15329787,"avatar_url":"https://avatars.githubusercontent.com/u/15329787?v=3","gravatar_id":"","url":"https://api.github.com/users/facundomerighiglobant","html_url":"https://github.com/facundomerighiglobant","followers_url":"https://api.github.com/users/facundomerighiglobant/followers","following_url":"https://api.github.com/users/facundomerighiglobant/following{/other_user}","gists_url":"https://api.github.com/users/facundomerighiglobant/gists{/gist_id}","starred_url":"https://api.github.com/users/facundomerighiglobant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facundomerighiglobant/subscriptions","organizations_url":"https://api.github.com/users/facundomerighiglobant/orgs","repos_url":"https://api.github.com/users/facundomerighiglobant/repos","events_url":"https://api.github.com/users/facundomerighiglobant/events{/privacy}","received_events_url":"https://api.github.com/users/facundomerighiglobant/received_events","type":"User","site_admin":false},"body":"si usas un return no necesitas un else.","created_at":"2015-11-19T09:42:34Z","updated_at":"2015-11-19T09:42:34Z","html_url":"https://github.com/facundomerighiglobant/mymovierocking/pull/1#discussion_r45318898","pull_request_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/comments/45318898"},"html":{"href":"https://github.com/facundomerighiglobant/mymovierocking/pull/1#discussion_r45318898"},"pull_request":{"href":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/1","id":51192321,"html_url":"https://github.com/facundomerighiglobant/mymovierocking/pull/1","diff_url":"https://github.com/facundomerighiglobant/mymovierocking/pull/1.diff","patch_url":"https://github.com/facundomerighiglobant/mymovierocking/pull/1.patch","issue_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/issues/1","number":1,"state":"open","locked":false,"title":"Bootcamp Final Project","user":{"login":"GMaiolo","id":9776436,"avatar_url":"https://avatars.githubusercontent.com/u/9776436?v=3","gravatar_id":"","url":"https://api.github.com/users/GMaiolo","html_url":"https://github.com/GMaiolo","followers_url":"https://api.github.com/users/GMaiolo/followers","following_url":"https://api.github.com/users/GMaiolo/following{/other_user}","gists_url":"https://api.github.com/users/GMaiolo/gists{/gist_id}","starred_url":"https://api.github.com/users/GMaiolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GMaiolo/subscriptions","organizations_url":"https://api.github.com/users/GMaiolo/orgs","repos_url":"https://api.github.com/users/GMaiolo/repos","events_url":"https://api.github.com/users/GMaiolo/events{/privacy}","received_events_url":"https://api.github.com/users/GMaiolo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-19T08:18:09Z","updated_at":"2015-11-19T09:42:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"916426c5baf85dce71c16e79cd3f33a0580d49b4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/1/commits","review_comments_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/1/comments","review_comment_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/issues/1/comments","statuses_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/statuses/d85d8b6be44894c236bee2b6b19ae87124b8ebdd","head":{"label":"GMaiolo:master","ref":"master","sha":"d85d8b6be44894c236bee2b6b19ae87124b8ebdd","user":{"login":"GMaiolo","id":9776436,"avatar_url":"https://avatars.githubusercontent.com/u/9776436?v=3","gravatar_id":"","url":"https://api.github.com/users/GMaiolo","html_url":"https://github.com/GMaiolo","followers_url":"https://api.github.com/users/GMaiolo/followers","following_url":"https://api.github.com/users/GMaiolo/following{/other_user}","gists_url":"https://api.github.com/users/GMaiolo/gists{/gist_id}","starred_url":"https://api.github.com/users/GMaiolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GMaiolo/subscriptions","organizations_url":"https://api.github.com/users/GMaiolo/orgs","repos_url":"https://api.github.com/users/GMaiolo/repos","events_url":"https://api.github.com/users/GMaiolo/events{/privacy}","received_events_url":"https://api.github.com/users/GMaiolo/received_events","type":"User","site_admin":false},"repo":{"id":46384898,"name":"mymovierocking","full_name":"GMaiolo/mymovierocking","owner":{"login":"GMaiolo","id":9776436,"avatar_url":"https://avatars.githubusercontent.com/u/9776436?v=3","gravatar_id":"","url":"https://api.github.com/users/GMaiolo","html_url":"https://github.com/GMaiolo","followers_url":"https://api.github.com/users/GMaiolo/followers","following_url":"https://api.github.com/users/GMaiolo/following{/other_user}","gists_url":"https://api.github.com/users/GMaiolo/gists{/gist_id}","starred_url":"https://api.github.com/users/GMaiolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GMaiolo/subscriptions","organizations_url":"https://api.github.com/users/GMaiolo/orgs","repos_url":"https://api.github.com/users/GMaiolo/repos","events_url":"https://api.github.com/users/GMaiolo/events{/privacy}","received_events_url":"https://api.github.com/users/GMaiolo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GMaiolo/mymovierocking","description":"Globant bootcamp","fork":true,"url":"https://api.github.com/repos/GMaiolo/mymovierocking","forks_url":"https://api.github.com/repos/GMaiolo/mymovierocking/forks","keys_url":"https://api.github.com/repos/GMaiolo/mymovierocking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GMaiolo/mymovierocking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GMaiolo/mymovierocking/teams","hooks_url":"https://api.github.com/repos/GMaiolo/mymovierocking/hooks","issue_events_url":"https://api.github.com/repos/GMaiolo/mymovierocking/issues/events{/number}","events_url":"https://api.github.com/repos/GMaiolo/mymovierocking/events","assignees_url":"https://api.github.com/repos/GMaiolo/mymovierocking/assignees{/user}","branches_url":"https://api.github.com/repos/GMaiolo/mymovierocking/branches{/branch}","tags_url":"https://api.github.com/repos/GMaiolo/mymovierocking/tags","blobs_url":"https://api.github.com/repos/GMaiolo/mymovierocking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GMaiolo/mymovierocking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GMaiolo/mymovierocking/git/refs{/sha}","trees_url":"https://api.github.com/repos/GMaiolo/mymovierocking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GMaiolo/mymovierocking/statuses/{sha}","languages_url":"https://api.github.com/repos/GMaiolo/mymovierocking/languages","stargazers_url":"https://api.github.com/repos/GMaiolo/mymovierocking/stargazers","contributors_url":"https://api.github.com/repos/GMaiolo/mymovierocking/contributors","subscribers_url":"https://api.github.com/repos/GMaiolo/mymovierocking/subscribers","subscription_url":"https://api.github.com/repos/GMaiolo/mymovierocking/subscription","commits_url":"https://api.github.com/repos/GMaiolo/mymovierocking/commits{/sha}","git_commits_url":"https://api.github.com/repos/GMaiolo/mymovierocking/git/commits{/sha}","comments_url":"https://api.github.com/repos/GMaiolo/mymovierocking/comments{/number}","issue_comment_url":"https://api.github.com/repos/GMaiolo/mymovierocking/issues/comments{/number}","contents_url":"https://api.github.com/repos/GMaiolo/mymovierocking/contents/{+path}","compare_url":"https://api.github.com/repos/GMaiolo/mymovierocking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GMaiolo/mymovierocking/merges","archive_url":"https://api.github.com/repos/GMaiolo/mymovierocking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GMaiolo/mymovierocking/downloads","issues_url":"https://api.github.com/repos/GMaiolo/mymovierocking/issues{/number}","pulls_url":"https://api.github.com/repos/GMaiolo/mymovierocking/pulls{/number}","milestones_url":"https://api.github.com/repos/GMaiolo/mymovierocking/milestones{/number}","notifications_url":"https://api.github.com/repos/GMaiolo/mymovierocking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GMaiolo/mymovierocking/labels{/name}","releases_url":"https://api.github.com/repos/GMaiolo/mymovierocking/releases{/id}","created_at":"2015-11-18T00:39:34Z","updated_at":"2015-11-18T00:39:34Z","pushed_at":"2015-11-19T06:09:32Z","git_url":"git://github.com/GMaiolo/mymovierocking.git","ssh_url":"git@github.com:GMaiolo/mymovierocking.git","clone_url":"https://github.com/GMaiolo/mymovierocking.git","svn_url":"https://github.com/GMaiolo/mymovierocking","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facundomerighiglobant:master","ref":"master","sha":"55e0fa6f5194fe4b2b02be1f418ab2862317358c","user":{"login":"facundomerighiglobant","id":15329787,"avatar_url":"https://avatars.githubusercontent.com/u/15329787?v=3","gravatar_id":"","url":"https://api.github.com/users/facundomerighiglobant","html_url":"https://github.com/facundomerighiglobant","followers_url":"https://api.github.com/users/facundomerighiglobant/followers","following_url":"https://api.github.com/users/facundomerighiglobant/following{/other_user}","gists_url":"https://api.github.com/users/facundomerighiglobant/gists{/gist_id}","starred_url":"https://api.github.com/users/facundomerighiglobant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facundomerighiglobant/subscriptions","organizations_url":"https://api.github.com/users/facundomerighiglobant/orgs","repos_url":"https://api.github.com/users/facundomerighiglobant/repos","events_url":"https://api.github.com/users/facundomerighiglobant/events{/privacy}","received_events_url":"https://api.github.com/users/facundomerighiglobant/received_events","type":"User","site_admin":false},"repo":{"id":46076077,"name":"mymovierocking","full_name":"facundomerighiglobant/mymovierocking","owner":{"login":"facundomerighiglobant","id":15329787,"avatar_url":"https://avatars.githubusercontent.com/u/15329787?v=3","gravatar_id":"","url":"https://api.github.com/users/facundomerighiglobant","html_url":"https://github.com/facundomerighiglobant","followers_url":"https://api.github.com/users/facundomerighiglobant/followers","following_url":"https://api.github.com/users/facundomerighiglobant/following{/other_user}","gists_url":"https://api.github.com/users/facundomerighiglobant/gists{/gist_id}","starred_url":"https://api.github.com/users/facundomerighiglobant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facundomerighiglobant/subscriptions","organizations_url":"https://api.github.com/users/facundomerighiglobant/orgs","repos_url":"https://api.github.com/users/facundomerighiglobant/repos","events_url":"https://api.github.com/users/facundomerighiglobant/events{/privacy}","received_events_url":"https://api.github.com/users/facundomerighiglobant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/facundomerighiglobant/mymovierocking","description":"Globant bootcamp","fork":false,"url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking","forks_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/forks","keys_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/teams","hooks_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/hooks","issue_events_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/issues/events{/number}","events_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/events","assignees_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/assignees{/user}","branches_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/branches{/branch}","tags_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/tags","blobs_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/git/refs{/sha}","trees_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/statuses/{sha}","languages_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/languages","stargazers_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/stargazers","contributors_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/contributors","subscribers_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/subscribers","subscription_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/subscription","commits_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/commits{/sha}","git_commits_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/git/commits{/sha}","comments_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/comments{/number}","issue_comment_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/issues/comments{/number}","contents_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/contents/{+path}","compare_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/merges","archive_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/downloads","issues_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/issues{/number}","pulls_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls{/number}","milestones_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/milestones{/number}","notifications_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/labels{/name}","releases_url":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/releases{/id}","created_at":"2015-11-12T19:33:50Z","updated_at":"2015-11-13T14:35:31Z","pushed_at":"2015-11-19T08:18:09Z","git_url":"git://github.com/facundomerighiglobant/mymovierocking.git","ssh_url":"git@github.com:facundomerighiglobant/mymovierocking.git","clone_url":"https://github.com/facundomerighiglobant/mymovierocking.git","svn_url":"https://github.com/facundomerighiglobant/mymovierocking","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":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/1"},"html":{"href":"https://github.com/facundomerighiglobant/mymovierocking/pull/1"},"issue":{"href":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/issues/1"},"comments":{"href":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/facundomerighiglobant/mymovierocking/statuses/d85d8b6be44894c236bee2b6b19ae87124b8ebdd"}}}}