{"action":"created","comment":{"url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/comments/83206351","pull_request_review_id":4063091,"id":83206351,"diff_hunk":"@@ -75,6 +76,43 @@ angular.module('slowfood.controllers', [])\n         };\n     };\n \n+    $scope.pickMenu = function(index) {\n+        $ionicModal.fromTemplateUrl('templates/show-menu.html', {\n+            scope: $scope,\n+            animation: 'slide-in-up'\n+        }).then(function (modal) {\n+            $scope.modal = modal;\n+            $scope.currentMenuIndex = index;\n+            $scope.getCategoryArrays(index);\n+            $scope.openModal();\n+        });\n+    };\n+\n+    $scope.getCategoryArrays = function(index) {\n+        var startersArray = [];\n+        var mainsArray = [];\n+        var dessertsArray = [];\n+        var menu = restaurant_response.menus[index];\n+        for (i = 0; i < menu.dishes.length; i++) {\n+            switch(menu.dishes[i].category) {\n+                case 'Starters':\n+                    startersArray.push(menu.dishes[i]);\n+                    break;\n+                case 'Mains':\n+                    mainsArray.push(menu.dishes[i]);\n+                    break;\n+                case 'Desserts':\n+                    dessertsArray.push(menu.dishes[i]);\n+                    break;\n+                default:\n+                    return true;\n+            }\n+        }\n+        $scope.startersArray = startersArray;\n+        $scope.mainsArray = mainsArray;\n+        $scope.dessertsArray = dessertsArray;\n+    };\n+","path":"www/js/controllers.js","position":66,"original_position":66,"commit_id":"4035ab7d849dc3115c474b12888914db5d6b40b0","original_commit_id":"4035ab7d849dc3115c474b12888914db5d6b40b0","user":{"login":"tochman","id":5248170,"avatar_url":"https://avatars.githubusercontent.com/u/5248170?v=3","gravatar_id":"","url":"https://api.github.com/users/tochman","html_url":"https://github.com/tochman","followers_url":"https://api.github.com/users/tochman/followers","following_url":"https://api.github.com/users/tochman/following{/other_user}","gists_url":"https://api.github.com/users/tochman/gists{/gist_id}","starred_url":"https://api.github.com/users/tochman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tochman/subscriptions","organizations_url":"https://api.github.com/users/tochman/orgs","repos_url":"https://api.github.com/users/tochman/repos","events_url":"https://api.github.com/users/tochman/events{/privacy}","received_events_url":"https://api.github.com/users/tochman/received_events","type":"User","site_admin":false},"body":"Creative.\r\nI'll review this at home tonight. I just might have a slightly different solution for you. ","created_at":"2016-10-13T12:42:14Z","updated_at":"2016-10-13T12:42:14Z","html_url":"https://github.com/CraftAcademy/bsf_mobile/pull/10#discussion_r83206351","pull_request_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/comments/83206351"},"html":{"href":"https://github.com/CraftAcademy/bsf_mobile/pull/10#discussion_r83206351"},"pull_request":{"href":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/10","id":89193450,"html_url":"https://github.com/CraftAcademy/bsf_mobile/pull/10","diff_url":"https://github.com/CraftAcademy/bsf_mobile/pull/10.diff","patch_url":"https://github.com/CraftAcademy/bsf_mobile/pull/10.patch","issue_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/issues/10","number":10,"state":"open","locked":false,"title":"WIP Display dishes on Menu page","user":{"login":"AmberWilkie","id":20141428,"avatar_url":"https://avatars.githubusercontent.com/u/20141428?v=3","gravatar_id":"","url":"https://api.github.com/users/AmberWilkie","html_url":"https://github.com/AmberWilkie","followers_url":"https://api.github.com/users/AmberWilkie/followers","following_url":"https://api.github.com/users/AmberWilkie/following{/other_user}","gists_url":"https://api.github.com/users/AmberWilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/AmberWilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmberWilkie/subscriptions","organizations_url":"https://api.github.com/users/AmberWilkie/orgs","repos_url":"https://api.github.com/users/AmberWilkie/repos","events_url":"https://api.github.com/users/AmberWilkie/events{/privacy}","received_events_url":"https://api.github.com/users/AmberWilkie/received_events","type":"User","site_admin":false},"body":"PT Story: https://www.pivotaltracker.com/story/show/132220207\r\n\r\nChanges proposed in this pull request:\r\n- Sort dishes by category in controller\r\n- Display dishes by category on Menu pages\r\n- Add 'Add to Cart' button on each dish\r\n\r\nWhat I have learned working on this feature:\r\n- Looping through arrays\r\n- Conditionally displaying divs\r\n\r\nScreenshots: [If you made some visual changes to the application please upload screenshots here, or remove this section]\r\n\r\nReady for review!","created_at":"2016-10-13T12:37:37Z","updated_at":"2016-10-13T12:42:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"877d8a603d80e64023eb792c815dc9f2e0760cf0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/10/commits","review_comments_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/10/comments","review_comment_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/issues/10/comments","statuses_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/statuses/4035ab7d849dc3115c474b12888914db5d6b40b0","head":{"label":"AmberWilkie:showmenupage","ref":"showmenupage","sha":"4035ab7d849dc3115c474b12888914db5d6b40b0","user":{"login":"AmberWilkie","id":20141428,"avatar_url":"https://avatars.githubusercontent.com/u/20141428?v=3","gravatar_id":"","url":"https://api.github.com/users/AmberWilkie","html_url":"https://github.com/AmberWilkie","followers_url":"https://api.github.com/users/AmberWilkie/followers","following_url":"https://api.github.com/users/AmberWilkie/following{/other_user}","gists_url":"https://api.github.com/users/AmberWilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/AmberWilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmberWilkie/subscriptions","organizations_url":"https://api.github.com/users/AmberWilkie/orgs","repos_url":"https://api.github.com/users/AmberWilkie/repos","events_url":"https://api.github.com/users/AmberWilkie/events{/privacy}","received_events_url":"https://api.github.com/users/AmberWilkie/received_events","type":"User","site_admin":false},"repo":{"id":70612717,"name":"bsf_mobile","full_name":"AmberWilkie/bsf_mobile","owner":{"login":"AmberWilkie","id":20141428,"avatar_url":"https://avatars.githubusercontent.com/u/20141428?v=3","gravatar_id":"","url":"https://api.github.com/users/AmberWilkie","html_url":"https://github.com/AmberWilkie","followers_url":"https://api.github.com/users/AmberWilkie/followers","following_url":"https://api.github.com/users/AmberWilkie/following{/other_user}","gists_url":"https://api.github.com/users/AmberWilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/AmberWilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmberWilkie/subscriptions","organizations_url":"https://api.github.com/users/AmberWilkie/orgs","repos_url":"https://api.github.com/users/AmberWilkie/repos","events_url":"https://api.github.com/users/AmberWilkie/events{/privacy}","received_events_url":"https://api.github.com/users/AmberWilkie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AmberWilkie/bsf_mobile","description":null,"fork":true,"url":"https://api.github.com/repos/AmberWilkie/bsf_mobile","forks_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/forks","keys_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/teams","hooks_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/hooks","issue_events_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/issues/events{/number}","events_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/events","assignees_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/assignees{/user}","branches_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/branches{/branch}","tags_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/tags","blobs_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/languages","stargazers_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/stargazers","contributors_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/contributors","subscribers_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/subscribers","subscription_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/subscription","commits_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/contents/{+path}","compare_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/merges","archive_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/downloads","issues_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/issues{/number}","pulls_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/labels{/name}","releases_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/releases{/id}","deployments_url":"https://api.github.com/repos/AmberWilkie/bsf_mobile/deployments","created_at":"2016-10-11T16:23:04Z","updated_at":"2016-10-11T16:23:05Z","pushed_at":"2016-10-13T12:38:55Z","git_url":"git://github.com/AmberWilkie/bsf_mobile.git","ssh_url":"git@github.com:AmberWilkie/bsf_mobile.git","clone_url":"https://github.com/AmberWilkie/bsf_mobile.git","svn_url":"https://github.com/AmberWilkie/bsf_mobile","homepage":null,"size":3981,"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":"develop"}},"base":{"label":"CraftAcademy:develop","ref":"develop","sha":"e94cfd64c44e4366c3e903b280c669b0a91f09e5","user":{"login":"CraftAcademy","id":12081851,"avatar_url":"https://avatars.githubusercontent.com/u/12081851?v=3","gravatar_id":"","url":"https://api.github.com/users/CraftAcademy","html_url":"https://github.com/CraftAcademy","followers_url":"https://api.github.com/users/CraftAcademy/followers","following_url":"https://api.github.com/users/CraftAcademy/following{/other_user}","gists_url":"https://api.github.com/users/CraftAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/CraftAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CraftAcademy/subscriptions","organizations_url":"https://api.github.com/users/CraftAcademy/orgs","repos_url":"https://api.github.com/users/CraftAcademy/repos","events_url":"https://api.github.com/users/CraftAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/CraftAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":70488561,"name":"bsf_mobile","full_name":"CraftAcademy/bsf_mobile","owner":{"login":"CraftAcademy","id":12081851,"avatar_url":"https://avatars.githubusercontent.com/u/12081851?v=3","gravatar_id":"","url":"https://api.github.com/users/CraftAcademy","html_url":"https://github.com/CraftAcademy","followers_url":"https://api.github.com/users/CraftAcademy/followers","following_url":"https://api.github.com/users/CraftAcademy/following{/other_user}","gists_url":"https://api.github.com/users/CraftAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/CraftAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CraftAcademy/subscriptions","organizations_url":"https://api.github.com/users/CraftAcademy/orgs","repos_url":"https://api.github.com/users/CraftAcademy/repos","events_url":"https://api.github.com/users/CraftAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/CraftAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CraftAcademy/bsf_mobile","description":null,"fork":false,"url":"https://api.github.com/repos/CraftAcademy/bsf_mobile","forks_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/forks","keys_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/teams","hooks_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/hooks","issue_events_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/issues/events{/number}","events_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/events","assignees_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/assignees{/user}","branches_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/branches{/branch}","tags_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/tags","blobs_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/languages","stargazers_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/stargazers","contributors_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/contributors","subscribers_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/subscribers","subscription_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/subscription","commits_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/contents/{+path}","compare_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/merges","archive_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/downloads","issues_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/issues{/number}","pulls_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/labels{/name}","releases_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/releases{/id}","deployments_url":"https://api.github.com/repos/CraftAcademy/bsf_mobile/deployments","created_at":"2016-10-10T13:06:16Z","updated_at":"2016-10-11T11:30:34Z","pushed_at":"2016-10-13T12:40:28Z","git_url":"git://github.com/CraftAcademy/bsf_mobile.git","ssh_url":"git@github.com:CraftAcademy/bsf_mobile.git","clone_url":"https://github.com/CraftAcademy/bsf_mobile.git","svn_url":"https://github.com/CraftAcademy/bsf_mobile","homepage":null,"size":14859,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/10"},"html":{"href":"https://github.com/CraftAcademy/bsf_mobile/pull/10"},"issue":{"href":"https://api.github.com/repos/CraftAcademy/bsf_mobile/issues/10"},"comments":{"href":"https://api.github.com/repos/CraftAcademy/bsf_mobile/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CraftAcademy/bsf_mobile/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/CraftAcademy/bsf_mobile/statuses/4035ab7d849dc3115c474b12888914db5d6b40b0"}}}}
{"actor":{"display_login":"tochman"}}