{"action":"created","comment":{"url":"https://api.github.com/repos/KanoComputing/make-art/pulls/comments/38539818","id":38539818,"diff_hunk":"@@ -92,6 +94,45 @@ app.controller('SummerCampController', function ($interval, $timeout, $scope, $r\n         });\n     };\n \n+    $scope.openPreview = function () {\n+        $scope.mailPreview = true;\n+    };\n+    \n+    $scope.closePreview = function () {\n+        $scope.mailPreview = false;\n+    };\n+\n+    // Call the send function from the email service\n+    $scope.sendMail = function (challengeObj) {\n+        var emailObj;\n+        if (!challengeObj.name || !challengeObj.message || !challengeObj.email) {\n+            return false;\n+        } else {\n+            if (emailService.validate(challengeObj.email)) {\n+                challengeObj.user_email = $rootScope.user.email;","path":"lib/controller/summer-camp.js","position":44,"original_position":44,"commit_id":"f96a61c3d65faf0712a08c18ad39062d0a28d44e","original_commit_id":"f96a61c3d65faf0712a08c18ad39062d0a28d44e","user":{"login":"andela-ladenusi","id":9654869,"avatar_url":"https://avatars.githubusercontent.com/u/9654869?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-ladenusi","html_url":"https://github.com/andela-ladenusi","followers_url":"https://api.github.com/users/andela-ladenusi/followers","following_url":"https://api.github.com/users/andela-ladenusi/following{/other_user}","gists_url":"https://api.github.com/users/andela-ladenusi/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-ladenusi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-ladenusi/subscriptions","organizations_url":"https://api.github.com/users/andela-ladenusi/orgs","repos_url":"https://api.github.com/users/andela-ladenusi/repos","events_url":"https://api.github.com/users/andela-ladenusi/events{/privacy}","received_events_url":"https://api.github.com/users/andela-ladenusi/received_events","type":"User","site_admin":false},"body":"I think I will because I'm passing the `selectedSummerChallengeObj` in there","created_at":"2015-09-02T14:43:41Z","updated_at":"2015-09-02T14:43:41Z","html_url":"https://github.com/KanoComputing/make-art/pull/179#discussion_r38539818","pull_request_url":"https://api.github.com/repos/KanoComputing/make-art/pulls/179","_links":{"self":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/comments/38539818"},"html":{"href":"https://github.com/KanoComputing/make-art/pull/179#discussion_r38539818"},"pull_request":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/179"}}},"pull_request":{"url":"https://api.github.com/repos/KanoComputing/make-art/pulls/179","id":43977562,"html_url":"https://github.com/KanoComputing/make-art/pull/179","diff_url":"https://github.com/KanoComputing/make-art/pull/179.diff","patch_url":"https://github.com/KanoComputing/make-art/pull/179.patch","issue_url":"https://api.github.com/repos/KanoComputing/make-art/issues/179","number":179,"state":"open","locked":false,"title":"Feature/mail","user":{"login":"andela-ladenusi","id":9654869,"avatar_url":"https://avatars.githubusercontent.com/u/9654869?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-ladenusi","html_url":"https://github.com/andela-ladenusi","followers_url":"https://api.github.com/users/andela-ladenusi/followers","following_url":"https://api.github.com/users/andela-ladenusi/following{/other_user}","gists_url":"https://api.github.com/users/andela-ladenusi/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-ladenusi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-ladenusi/subscriptions","organizations_url":"https://api.github.com/users/andela-ladenusi/orgs","repos_url":"https://api.github.com/users/andela-ladenusi/repos","events_url":"https://api.github.com/users/andela-ladenusi/events{/privacy}","received_events_url":"https://api.github.com/users/andela-ladenusi/received_events","type":"User","site_admin":false},"body":"Fixed the mail sharing and the facebook app seems to have been approved","created_at":"2015-09-02T10:47:20Z","updated_at":"2015-09-02T14:43:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b43b5c3b32df1239f94623db83f53c8b5f7647b9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KanoComputing/make-art/pulls/179/commits","review_comments_url":"https://api.github.com/repos/KanoComputing/make-art/pulls/179/comments","review_comment_url":"https://api.github.com/repos/KanoComputing/make-art/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KanoComputing/make-art/issues/179/comments","statuses_url":"https://api.github.com/repos/KanoComputing/make-art/statuses/f96a61c3d65faf0712a08c18ad39062d0a28d44e","head":{"label":"KanoComputing:feature/mail","ref":"feature/mail","sha":"f96a61c3d65faf0712a08c18ad39062d0a28d44e","user":{"login":"KanoComputing","id":3909402,"avatar_url":"https://avatars.githubusercontent.com/u/3909402?v=3","gravatar_id":"","url":"https://api.github.com/users/KanoComputing","html_url":"https://github.com/KanoComputing","followers_url":"https://api.github.com/users/KanoComputing/followers","following_url":"https://api.github.com/users/KanoComputing/following{/other_user}","gists_url":"https://api.github.com/users/KanoComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/KanoComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanoComputing/subscriptions","organizations_url":"https://api.github.com/users/KanoComputing/orgs","repos_url":"https://api.github.com/users/KanoComputing/repos","events_url":"https://api.github.com/users/KanoComputing/events{/privacy}","received_events_url":"https://api.github.com/users/KanoComputing/received_events","type":"Organization","site_admin":false},"repo":{"id":18807835,"name":"make-art","full_name":"KanoComputing/make-art","owner":{"login":"KanoComputing","id":3909402,"avatar_url":"https://avatars.githubusercontent.com/u/3909402?v=3","gravatar_id":"","url":"https://api.github.com/users/KanoComputing","html_url":"https://github.com/KanoComputing","followers_url":"https://api.github.com/users/KanoComputing/followers","following_url":"https://api.github.com/users/KanoComputing/following{/other_user}","gists_url":"https://api.github.com/users/KanoComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/KanoComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanoComputing/subscriptions","organizations_url":"https://api.github.com/users/KanoComputing/orgs","repos_url":"https://api.github.com/users/KanoComputing/repos","events_url":"https://api.github.com/users/KanoComputing/events{/privacy}","received_events_url":"https://api.github.com/users/KanoComputing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KanoComputing/make-art","description":"App to learn programming using a basic CoffeeScript drawing API","fork":false,"url":"https://api.github.com/repos/KanoComputing/make-art","forks_url":"https://api.github.com/repos/KanoComputing/make-art/forks","keys_url":"https://api.github.com/repos/KanoComputing/make-art/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KanoComputing/make-art/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KanoComputing/make-art/teams","hooks_url":"https://api.github.com/repos/KanoComputing/make-art/hooks","issue_events_url":"https://api.github.com/repos/KanoComputing/make-art/issues/events{/number}","events_url":"https://api.github.com/repos/KanoComputing/make-art/events","assignees_url":"https://api.github.com/repos/KanoComputing/make-art/assignees{/user}","branches_url":"https://api.github.com/repos/KanoComputing/make-art/branches{/branch}","tags_url":"https://api.github.com/repos/KanoComputing/make-art/tags","blobs_url":"https://api.github.com/repos/KanoComputing/make-art/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KanoComputing/make-art/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KanoComputing/make-art/git/refs{/sha}","trees_url":"https://api.github.com/repos/KanoComputing/make-art/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KanoComputing/make-art/statuses/{sha}","languages_url":"https://api.github.com/repos/KanoComputing/make-art/languages","stargazers_url":"https://api.github.com/repos/KanoComputing/make-art/stargazers","contributors_url":"https://api.github.com/repos/KanoComputing/make-art/contributors","subscribers_url":"https://api.github.com/repos/KanoComputing/make-art/subscribers","subscription_url":"https://api.github.com/repos/KanoComputing/make-art/subscription","commits_url":"https://api.github.com/repos/KanoComputing/make-art/commits{/sha}","git_commits_url":"https://api.github.com/repos/KanoComputing/make-art/git/commits{/sha}","comments_url":"https://api.github.com/repos/KanoComputing/make-art/comments{/number}","issue_comment_url":"https://api.github.com/repos/KanoComputing/make-art/issues/comments{/number}","contents_url":"https://api.github.com/repos/KanoComputing/make-art/contents/{+path}","compare_url":"https://api.github.com/repos/KanoComputing/make-art/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KanoComputing/make-art/merges","archive_url":"https://api.github.com/repos/KanoComputing/make-art/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KanoComputing/make-art/downloads","issues_url":"https://api.github.com/repos/KanoComputing/make-art/issues{/number}","pulls_url":"https://api.github.com/repos/KanoComputing/make-art/pulls{/number}","milestones_url":"https://api.github.com/repos/KanoComputing/make-art/milestones{/number}","notifications_url":"https://api.github.com/repos/KanoComputing/make-art/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KanoComputing/make-art/labels{/name}","releases_url":"https://api.github.com/repos/KanoComputing/make-art/releases{/id}","created_at":"2014-04-15T16:48:49Z","updated_at":"2015-08-24T15:17:20Z","pushed_at":"2015-09-02T10:47:21Z","git_url":"git://github.com/KanoComputing/make-art.git","ssh_url":"git@github.com:KanoComputing/make-art.git","clone_url":"https://github.com/KanoComputing/make-art.git","svn_url":"https://github.com/KanoComputing/make-art","homepage":null,"size":13825,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":25,"forks":9,"open_issues":25,"watchers":8,"default_branch":"master"}},"base":{"label":"KanoComputing:master","ref":"master","sha":"0d4349a2080c88b6d252fd5642f72eb4f7852446","user":{"login":"KanoComputing","id":3909402,"avatar_url":"https://avatars.githubusercontent.com/u/3909402?v=3","gravatar_id":"","url":"https://api.github.com/users/KanoComputing","html_url":"https://github.com/KanoComputing","followers_url":"https://api.github.com/users/KanoComputing/followers","following_url":"https://api.github.com/users/KanoComputing/following{/other_user}","gists_url":"https://api.github.com/users/KanoComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/KanoComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanoComputing/subscriptions","organizations_url":"https://api.github.com/users/KanoComputing/orgs","repos_url":"https://api.github.com/users/KanoComputing/repos","events_url":"https://api.github.com/users/KanoComputing/events{/privacy}","received_events_url":"https://api.github.com/users/KanoComputing/received_events","type":"Organization","site_admin":false},"repo":{"id":18807835,"name":"make-art","full_name":"KanoComputing/make-art","owner":{"login":"KanoComputing","id":3909402,"avatar_url":"https://avatars.githubusercontent.com/u/3909402?v=3","gravatar_id":"","url":"https://api.github.com/users/KanoComputing","html_url":"https://github.com/KanoComputing","followers_url":"https://api.github.com/users/KanoComputing/followers","following_url":"https://api.github.com/users/KanoComputing/following{/other_user}","gists_url":"https://api.github.com/users/KanoComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/KanoComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanoComputing/subscriptions","organizations_url":"https://api.github.com/users/KanoComputing/orgs","repos_url":"https://api.github.com/users/KanoComputing/repos","events_url":"https://api.github.com/users/KanoComputing/events{/privacy}","received_events_url":"https://api.github.com/users/KanoComputing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KanoComputing/make-art","description":"App to learn programming using a basic CoffeeScript drawing API","fork":false,"url":"https://api.github.com/repos/KanoComputing/make-art","forks_url":"https://api.github.com/repos/KanoComputing/make-art/forks","keys_url":"https://api.github.com/repos/KanoComputing/make-art/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KanoComputing/make-art/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KanoComputing/make-art/teams","hooks_url":"https://api.github.com/repos/KanoComputing/make-art/hooks","issue_events_url":"https://api.github.com/repos/KanoComputing/make-art/issues/events{/number}","events_url":"https://api.github.com/repos/KanoComputing/make-art/events","assignees_url":"https://api.github.com/repos/KanoComputing/make-art/assignees{/user}","branches_url":"https://api.github.com/repos/KanoComputing/make-art/branches{/branch}","tags_url":"https://api.github.com/repos/KanoComputing/make-art/tags","blobs_url":"https://api.github.com/repos/KanoComputing/make-art/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KanoComputing/make-art/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KanoComputing/make-art/git/refs{/sha}","trees_url":"https://api.github.com/repos/KanoComputing/make-art/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KanoComputing/make-art/statuses/{sha}","languages_url":"https://api.github.com/repos/KanoComputing/make-art/languages","stargazers_url":"https://api.github.com/repos/KanoComputing/make-art/stargazers","contributors_url":"https://api.github.com/repos/KanoComputing/make-art/contributors","subscribers_url":"https://api.github.com/repos/KanoComputing/make-art/subscribers","subscription_url":"https://api.github.com/repos/KanoComputing/make-art/subscription","commits_url":"https://api.github.com/repos/KanoComputing/make-art/commits{/sha}","git_commits_url":"https://api.github.com/repos/KanoComputing/make-art/git/commits{/sha}","comments_url":"https://api.github.com/repos/KanoComputing/make-art/comments{/number}","issue_comment_url":"https://api.github.com/repos/KanoComputing/make-art/issues/comments{/number}","contents_url":"https://api.github.com/repos/KanoComputing/make-art/contents/{+path}","compare_url":"https://api.github.com/repos/KanoComputing/make-art/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KanoComputing/make-art/merges","archive_url":"https://api.github.com/repos/KanoComputing/make-art/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KanoComputing/make-art/downloads","issues_url":"https://api.github.com/repos/KanoComputing/make-art/issues{/number}","pulls_url":"https://api.github.com/repos/KanoComputing/make-art/pulls{/number}","milestones_url":"https://api.github.com/repos/KanoComputing/make-art/milestones{/number}","notifications_url":"https://api.github.com/repos/KanoComputing/make-art/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KanoComputing/make-art/labels{/name}","releases_url":"https://api.github.com/repos/KanoComputing/make-art/releases{/id}","created_at":"2014-04-15T16:48:49Z","updated_at":"2015-08-24T15:17:20Z","pushed_at":"2015-09-02T10:47:21Z","git_url":"git://github.com/KanoComputing/make-art.git","ssh_url":"git@github.com:KanoComputing/make-art.git","clone_url":"https://github.com/KanoComputing/make-art.git","svn_url":"https://github.com/KanoComputing/make-art","homepage":null,"size":13825,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":25,"forks":9,"open_issues":25,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/179"},"html":{"href":"https://github.com/KanoComputing/make-art/pull/179"},"issue":{"href":"https://api.github.com/repos/KanoComputing/make-art/issues/179"},"comments":{"href":"https://api.github.com/repos/KanoComputing/make-art/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/KanoComputing/make-art/statuses/f96a61c3d65faf0712a08c18ad39062d0a28d44e"}}}}