{"action":"closed","number":411,"pull_request":{"url":"https://api.github.com/repos/mysociety/yournextmp-popit/pulls/411","id":38901833,"html_url":"https://github.com/mysociety/yournextmp-popit/pull/411","diff_url":"https://github.com/mysociety/yournextmp-popit/pull/411.diff","patch_url":"https://github.com/mysociety/yournextmp-popit/pull/411.patch","issue_url":"https://api.github.com/repos/mysociety/yournextmp-popit/issues/411","number":411,"state":"closed","locked":false,"title":"Fix the add candidate button","user":{"login":"lizconlan","id":27760,"avatar_url":"https://avatars.githubusercontent.com/u/27760?v=3","gravatar_id":"","url":"https://api.github.com/users/lizconlan","html_url":"https://github.com/lizconlan","followers_url":"https://api.github.com/users/lizconlan/followers","following_url":"https://api.github.com/users/lizconlan/following{/other_user}","gists_url":"https://api.github.com/users/lizconlan/gists{/gist_id}","starred_url":"https://api.github.com/users/lizconlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizconlan/subscriptions","organizations_url":"https://api.github.com/users/lizconlan/orgs","repos_url":"https://api.github.com/users/lizconlan/repos","events_url":"https://api.github.com/users/lizconlan/events{/privacy}","received_events_url":"https://api.github.com/users/lizconlan/received_events","type":"User","site_admin":false},"body":"This seemed to just be a case of adding a second version of the button which would only be displayed if the user isn't allowed to edit (assume not logged in). Could just as easily become an only show button if statement.\r\n\r\nIncludes updated .po files which I had expected to just add \"Sign in to add a new candidate\" and yet... Hmmm. Will take that under advisement\r\n\r\nCloses #388\r\nCloses #408 ","created_at":"2015-06-30T17:13:11Z","updated_at":"2015-07-02T08:20:27Z","closed_at":"2015-07-02T08:20:27Z","merged_at":"2015-07-02T08:20:27Z","merge_commit_sha":"dbe892245c1bc24517ad3802934664ae68fadefe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mysociety/yournextmp-popit/pulls/411/commits","review_comments_url":"https://api.github.com/repos/mysociety/yournextmp-popit/pulls/411/comments","review_comment_url":"https://api.github.com/repos/mysociety/yournextmp-popit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mysociety/yournextmp-popit/issues/411/comments","statuses_url":"https://api.github.com/repos/mysociety/yournextmp-popit/statuses/7003fa57fccd5850bb6e8cef3834be5d32ba1fa7","head":{"label":"mysociety:fix-add-candidate-button","ref":"fix-add-candidate-button","sha":"7003fa57fccd5850bb6e8cef3834be5d32ba1fa7","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":23865131,"name":"yournextmp-popit","full_name":"mysociety/yournextmp-popit","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/yournextmp-popit","description":"An experimental front-end to PopIt for 2015 GE candidates","fork":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit","forks_url":"https://api.github.com/repos/mysociety/yournextmp-popit/forks","keys_url":"https://api.github.com/repos/mysociety/yournextmp-popit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/yournextmp-popit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/yournextmp-popit/teams","hooks_url":"https://api.github.com/repos/mysociety/yournextmp-popit/hooks","issue_events_url":"https://api.github.com/repos/mysociety/yournextmp-popit/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/yournextmp-popit/events","assignees_url":"https://api.github.com/repos/mysociety/yournextmp-popit/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/yournextmp-popit/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/yournextmp-popit/tags","blobs_url":"https://api.github.com/repos/mysociety/yournextmp-popit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/yournextmp-popit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/yournextmp-popit/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/yournextmp-popit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/yournextmp-popit/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/yournextmp-popit/languages","stargazers_url":"https://api.github.com/repos/mysociety/yournextmp-popit/stargazers","contributors_url":"https://api.github.com/repos/mysociety/yournextmp-popit/contributors","subscribers_url":"https://api.github.com/repos/mysociety/yournextmp-popit/subscribers","subscription_url":"https://api.github.com/repos/mysociety/yournextmp-popit/subscription","commits_url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/yournextmp-popit/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/yournextmp-popit/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/yournextmp-popit/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/yournextmp-popit/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/yournextmp-popit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/yournextmp-popit/merges","archive_url":"https://api.github.com/repos/mysociety/yournextmp-popit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/yournextmp-popit/downloads","issues_url":"https://api.github.com/repos/mysociety/yournextmp-popit/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/yournextmp-popit/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/yournextmp-popit/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/yournextmp-popit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/yournextmp-popit/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/yournextmp-popit/releases{/id}","created_at":"2014-09-10T07:32:13Z","updated_at":"2015-06-03T13:13:06Z","pushed_at":"2015-07-02T08:20:26Z","git_url":"git://github.com/mysociety/yournextmp-popit.git","ssh_url":"git@github.com:mysociety/yournextmp-popit.git","clone_url":"https://github.com/mysociety/yournextmp-popit.git","svn_url":"https://github.com/mysociety/yournextmp-popit","homepage":"http://yournextmp.mysociety.org","size":5589,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":123,"forks":10,"open_issues":123,"watchers":19,"default_branch":"master"}},"base":{"label":"mysociety:master","ref":"master","sha":"b2beea6150573768603387d1d2d9c6a8e31a0a37","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":23865131,"name":"yournextmp-popit","full_name":"mysociety/yournextmp-popit","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/yournextmp-popit","description":"An experimental front-end to PopIt for 2015 GE candidates","fork":false,"url":"https://api.github.com/repos/mysociety/yournextmp-popit","forks_url":"https://api.github.com/repos/mysociety/yournextmp-popit/forks","keys_url":"https://api.github.com/repos/mysociety/yournextmp-popit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/yournextmp-popit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/yournextmp-popit/teams","hooks_url":"https://api.github.com/repos/mysociety/yournextmp-popit/hooks","issue_events_url":"https://api.github.com/repos/mysociety/yournextmp-popit/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/yournextmp-popit/events","assignees_url":"https://api.github.com/repos/mysociety/yournextmp-popit/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/yournextmp-popit/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/yournextmp-popit/tags","blobs_url":"https://api.github.com/repos/mysociety/yournextmp-popit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/yournextmp-popit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/yournextmp-popit/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/yournextmp-popit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/yournextmp-popit/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/yournextmp-popit/languages","stargazers_url":"https://api.github.com/repos/mysociety/yournextmp-popit/stargazers","contributors_url":"https://api.github.com/repos/mysociety/yournextmp-popit/contributors","subscribers_url":"https://api.github.com/repos/mysociety/yournextmp-popit/subscribers","subscription_url":"https://api.github.com/repos/mysociety/yournextmp-popit/subscription","commits_url":"https://api.github.com/repos/mysociety/yournextmp-popit/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/yournextmp-popit/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/yournextmp-popit/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/yournextmp-popit/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/yournextmp-popit/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/yournextmp-popit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/yournextmp-popit/merges","archive_url":"https://api.github.com/repos/mysociety/yournextmp-popit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/yournextmp-popit/downloads","issues_url":"https://api.github.com/repos/mysociety/yournextmp-popit/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/yournextmp-popit/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/yournextmp-popit/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/yournextmp-popit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/yournextmp-popit/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/yournextmp-popit/releases{/id}","created_at":"2014-09-10T07:32:13Z","updated_at":"2015-06-03T13:13:06Z","pushed_at":"2015-07-02T08:20:26Z","git_url":"git://github.com/mysociety/yournextmp-popit.git","ssh_url":"git@github.com:mysociety/yournextmp-popit.git","clone_url":"https://github.com/mysociety/yournextmp-popit.git","svn_url":"https://github.com/mysociety/yournextmp-popit","homepage":"http://yournextmp.mysociety.org","size":5589,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":123,"forks":10,"open_issues":123,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mysociety/yournextmp-popit/pulls/411"},"html":{"href":"https://github.com/mysociety/yournextmp-popit/pull/411"},"issue":{"href":"https://api.github.com/repos/mysociety/yournextmp-popit/issues/411"},"comments":{"href":"https://api.github.com/repos/mysociety/yournextmp-popit/issues/411/comments"},"review_comments":{"href":"https://api.github.com/repos/mysociety/yournextmp-popit/pulls/411/comments"},"review_comment":{"href":"https://api.github.com/repos/mysociety/yournextmp-popit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mysociety/yournextmp-popit/pulls/411/commits"},"statuses":{"href":"https://api.github.com/repos/mysociety/yournextmp-popit/statuses/7003fa57fccd5850bb6e8cef3834be5d32ba1fa7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mhl","id":7907,"avatar_url":"https://avatars.githubusercontent.com/u/7907?v=3","gravatar_id":"","url":"https://api.github.com/users/mhl","html_url":"https://github.com/mhl","followers_url":"https://api.github.com/users/mhl/followers","following_url":"https://api.github.com/users/mhl/following{/other_user}","gists_url":"https://api.github.com/users/mhl/gists{/gist_id}","starred_url":"https://api.github.com/users/mhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhl/subscriptions","organizations_url":"https://api.github.com/users/mhl/orgs","repos_url":"https://api.github.com/users/mhl/repos","events_url":"https://api.github.com/users/mhl/events{/privacy}","received_events_url":"https://api.github.com/users/mhl/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":801,"deletions":396,"changed_files":5}}