{"action":"created","comment":{"url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/comments/64447518","id":64447518,"diff_hunk":"@@ -59,13 +56,12 @@\n   <%= link_to \"Edit\", edit_organization_path(@organization), class: \"btn btn-primary\" %>\n <% end %>\n \n-<% if user_signed_in? %>\n-  <% if !(@claimed && @claimed.status == true)  %>\n-    <% if @organization.user == nil %>\n-      <%= link_to \"Claim this business\", new_organization_claim_request_path(@organization), class: \"btn btn-primary\"%>\n-    <% end %>\n+<% if !(@claimed && @claimed.status == true) || @organization.user == nil  %>","path":"app/views/organizations/show.html.erb","position":19,"original_position":19,"commit_id":"c190bb753a34d11ddb1e8714ed1bbceb357c78ae","original_commit_id":"c190bb753a34d11ddb1e8714ed1bbceb357c78ae","user":{"login":"tkbeili","id":245105,"avatar_url":"https://avatars.githubusercontent.com/u/245105?v=3","gravatar_id":"","url":"https://api.github.com/users/tkbeili","html_url":"https://github.com/tkbeili","followers_url":"https://api.github.com/users/tkbeili/followers","following_url":"https://api.github.com/users/tkbeili/following{/other_user}","gists_url":"https://api.github.com/users/tkbeili/gists{/gist_id}","starred_url":"https://api.github.com/users/tkbeili/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkbeili/subscriptions","organizations_url":"https://api.github.com/users/tkbeili/orgs","repos_url":"https://api.github.com/users/tkbeili/repos","events_url":"https://api.github.com/users/tkbeili/events{/privacy}","received_events_url":"https://api.github.com/users/tkbeili/received_events","type":"User","site_admin":false},"body":"Try to wrap this in a helper method, it's hard to understand what's happening here","created_at":"2016-05-24T18:23:16Z","updated_at":"2016-05-24T18:23:16Z","html_url":"https://github.com/CodeCoreYVR/vancouvertechhub/pull/7#discussion_r64447518","pull_request_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/comments/64447518"},"html":{"href":"https://github.com/CodeCoreYVR/vancouvertechhub/pull/7#discussion_r64447518"},"pull_request":{"href":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/7","id":71267294,"html_url":"https://github.com/CodeCoreYVR/vancouvertechhub/pull/7","diff_url":"https://github.com/CodeCoreYVR/vancouvertechhub/pull/7.diff","patch_url":"https://github.com/CodeCoreYVR/vancouvertechhub/pull/7.patch","issue_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/issues/7","number":7,"state":"open","locked":false,"title":"Team 3 - Fix claim button","user":{"login":"yiivan","id":17835966,"avatar_url":"https://avatars.githubusercontent.com/u/17835966?v=3","gravatar_id":"","url":"https://api.github.com/users/yiivan","html_url":"https://github.com/yiivan","followers_url":"https://api.github.com/users/yiivan/followers","following_url":"https://api.github.com/users/yiivan/following{/other_user}","gists_url":"https://api.github.com/users/yiivan/gists{/gist_id}","starred_url":"https://api.github.com/users/yiivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiivan/subscriptions","organizations_url":"https://api.github.com/users/yiivan/orgs","repos_url":"https://api.github.com/users/yiivan/repos","events_url":"https://api.github.com/users/yiivan/events{/privacy}","received_events_url":"https://api.github.com/users/yiivan/received_events","type":"User","site_admin":false},"body":"Fixed claim button for non-logged-in users and added test.","created_at":"2016-05-24T18:13:33Z","updated_at":"2016-05-24T18:23:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3052bed35933b2289c8b0e965793339759eb674","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/7/commits","review_comments_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/7/comments","review_comment_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/issues/7/comments","statuses_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/statuses/c190bb753a34d11ddb1e8714ed1bbceb357c78ae","head":{"label":"CodeCoreYVR:fix_claim_button","ref":"fix_claim_button","sha":"c190bb753a34d11ddb1e8714ed1bbceb357c78ae","user":{"login":"CodeCoreYVR","id":6611839,"avatar_url":"https://avatars.githubusercontent.com/u/6611839?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCoreYVR","html_url":"https://github.com/CodeCoreYVR","followers_url":"https://api.github.com/users/CodeCoreYVR/followers","following_url":"https://api.github.com/users/CodeCoreYVR/following{/other_user}","gists_url":"https://api.github.com/users/CodeCoreYVR/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCoreYVR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCoreYVR/subscriptions","organizations_url":"https://api.github.com/users/CodeCoreYVR/orgs","repos_url":"https://api.github.com/users/CodeCoreYVR/repos","events_url":"https://api.github.com/users/CodeCoreYVR/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCoreYVR/received_events","type":"Organization","site_admin":false},"repo":{"id":59041940,"name":"vancouvertechhub","full_name":"CodeCoreYVR/vancouvertechhub","owner":{"login":"CodeCoreYVR","id":6611839,"avatar_url":"https://avatars.githubusercontent.com/u/6611839?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCoreYVR","html_url":"https://github.com/CodeCoreYVR","followers_url":"https://api.github.com/users/CodeCoreYVR/followers","following_url":"https://api.github.com/users/CodeCoreYVR/following{/other_user}","gists_url":"https://api.github.com/users/CodeCoreYVR/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCoreYVR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCoreYVR/subscriptions","organizations_url":"https://api.github.com/users/CodeCoreYVR/orgs","repos_url":"https://api.github.com/users/CodeCoreYVR/repos","events_url":"https://api.github.com/users/CodeCoreYVR/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCoreYVR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeCoreYVR/vancouvertechhub","description":"","fork":true,"url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub","forks_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/forks","keys_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/teams","hooks_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/hooks","issue_events_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/issues/events{/number}","events_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/events","assignees_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/assignees{/user}","branches_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/branches{/branch}","tags_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/tags","blobs_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/languages","stargazers_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/stargazers","contributors_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/contributors","subscribers_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/subscribers","subscription_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/subscription","commits_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/contents/{+path}","compare_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/merges","archive_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/downloads","issues_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/issues{/number}","pulls_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/labels{/name}","releases_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/releases{/id}","deployments_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/deployments","created_at":"2016-05-17T16:57:45Z","updated_at":"2016-05-17T16:57:46Z","pushed_at":"2016-05-24T18:13:34Z","git_url":"git://github.com/CodeCoreYVR/vancouvertechhub.git","ssh_url":"git@github.com:CodeCoreYVR/vancouvertechhub.git","clone_url":"https://github.com/CodeCoreYVR/vancouvertechhub.git","svn_url":"https://github.com/CodeCoreYVR/vancouvertechhub","homepage":null,"size":6683,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"CodeCoreYVR:integration","ref":"integration","sha":"95cf525809331f20885a0fc9405fb47d82ab302a","user":{"login":"CodeCoreYVR","id":6611839,"avatar_url":"https://avatars.githubusercontent.com/u/6611839?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCoreYVR","html_url":"https://github.com/CodeCoreYVR","followers_url":"https://api.github.com/users/CodeCoreYVR/followers","following_url":"https://api.github.com/users/CodeCoreYVR/following{/other_user}","gists_url":"https://api.github.com/users/CodeCoreYVR/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCoreYVR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCoreYVR/subscriptions","organizations_url":"https://api.github.com/users/CodeCoreYVR/orgs","repos_url":"https://api.github.com/users/CodeCoreYVR/repos","events_url":"https://api.github.com/users/CodeCoreYVR/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCoreYVR/received_events","type":"Organization","site_admin":false},"repo":{"id":59041940,"name":"vancouvertechhub","full_name":"CodeCoreYVR/vancouvertechhub","owner":{"login":"CodeCoreYVR","id":6611839,"avatar_url":"https://avatars.githubusercontent.com/u/6611839?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCoreYVR","html_url":"https://github.com/CodeCoreYVR","followers_url":"https://api.github.com/users/CodeCoreYVR/followers","following_url":"https://api.github.com/users/CodeCoreYVR/following{/other_user}","gists_url":"https://api.github.com/users/CodeCoreYVR/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCoreYVR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCoreYVR/subscriptions","organizations_url":"https://api.github.com/users/CodeCoreYVR/orgs","repos_url":"https://api.github.com/users/CodeCoreYVR/repos","events_url":"https://api.github.com/users/CodeCoreYVR/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCoreYVR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeCoreYVR/vancouvertechhub","description":"","fork":true,"url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub","forks_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/forks","keys_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/teams","hooks_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/hooks","issue_events_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/issues/events{/number}","events_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/events","assignees_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/assignees{/user}","branches_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/branches{/branch}","tags_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/tags","blobs_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/languages","stargazers_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/stargazers","contributors_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/contributors","subscribers_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/subscribers","subscription_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/subscription","commits_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/contents/{+path}","compare_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/merges","archive_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/downloads","issues_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/issues{/number}","pulls_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/labels{/name}","releases_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/releases{/id}","deployments_url":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/deployments","created_at":"2016-05-17T16:57:45Z","updated_at":"2016-05-17T16:57:46Z","pushed_at":"2016-05-24T18:13:34Z","git_url":"git://github.com/CodeCoreYVR/vancouvertechhub.git","ssh_url":"git@github.com:CodeCoreYVR/vancouvertechhub.git","clone_url":"https://github.com/CodeCoreYVR/vancouvertechhub.git","svn_url":"https://github.com/CodeCoreYVR/vancouvertechhub","homepage":null,"size":6683,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/7"},"html":{"href":"https://github.com/CodeCoreYVR/vancouvertechhub/pull/7"},"issue":{"href":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/issues/7"},"comments":{"href":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/CodeCoreYVR/vancouvertechhub/statuses/c190bb753a34d11ddb1e8714ed1bbceb357c78ae"}}}}
{"actor":{"display_login":"tkbeili"}}