{"action":"closed","number":4763,"pull_request":{"url":"https://api.github.com/repos/everypolitician/viewer-sinatra/pulls/4763","id":61928869,"html_url":"https://github.com/everypolitician/viewer-sinatra/pull/4763","diff_url":"https://github.com/everypolitician/viewer-sinatra/pull/4763.diff","patch_url":"https://github.com/everypolitician/viewer-sinatra/pull/4763.patch","issue_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/issues/4763","number":4763,"state":"closed","locked":false,"title":"Present CSV and JSON download options on term page","user":{"login":"zarino","id":739624,"avatar_url":"https://avatars.githubusercontent.com/u/739624?v=3","gravatar_id":"","url":"https://api.github.com/users/zarino","html_url":"https://github.com/zarino","followers_url":"https://api.github.com/users/zarino/followers","following_url":"https://api.github.com/users/zarino/following{/other_user}","gists_url":"https://api.github.com/users/zarino/gists{/gist_id}","starred_url":"https://api.github.com/users/zarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarino/subscriptions","organizations_url":"https://api.github.com/users/zarino/orgs","repos_url":"https://api.github.com/users/zarino/repos","events_url":"https://api.github.com/users/zarino/events{/privacy}","received_events_url":"https://api.github.com/users/zarino/received_events","type":"User","site_admin":false},"body":"We use the Houdini CSS library from other mySociety projects to handle the dropdown behaviour without JavaScript. But because Houdini uses `id/for` attributes we also needed to tweak the `$.fixedThead()` module to deduplicate ids on cloned elements.\r\n\r\n![dropdown](https://cloud.githubusercontent.com/assets/739624/13573090/cb4b1fe2-e475-11e5-88c5-4cecbc05a320.jpg)\r\n\r\nFixes everypolitician/everypolitician#324.","created_at":"2016-03-07T15:03:54Z","updated_at":"2016-03-07T15:21:49Z","closed_at":"2016-03-07T15:21:49Z","merged_at":"2016-03-07T15:21:49Z","merge_commit_sha":"b003ff631eb9c690dc7f80548f266acaf79f78d7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/pulls/4763/commits","review_comments_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/pulls/4763/comments","review_comment_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/issues/4763/comments","statuses_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/statuses/16fd647e3fe2b9bac320b8b4282b9e89d7bd1140","head":{"label":"everypolitician:324-download-options","ref":"324-download-options","sha":"16fd647e3fe2b9bac320b8b4282b9e89d7bd1140","user":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"repo":{"id":33254196,"name":"viewer-sinatra","full_name":"everypolitician/viewer-sinatra","owner":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everypolitician/viewer-sinatra","description":"Sinatra app for viewing EveryPolitician data","fork":false,"url":"https://api.github.com/repos/everypolitician/viewer-sinatra","forks_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/forks","keys_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/teams","hooks_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/hooks","issue_events_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/issues/events{/number}","events_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/events","assignees_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/assignees{/user}","branches_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/branches{/branch}","tags_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/tags","blobs_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/git/refs{/sha}","trees_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/statuses/{sha}","languages_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/languages","stargazers_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/stargazers","contributors_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/contributors","subscribers_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/subscribers","subscription_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/subscription","commits_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/commits{/sha}","git_commits_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/git/commits{/sha}","comments_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/comments{/number}","issue_comment_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/issues/comments{/number}","contents_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/contents/{+path}","compare_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/merges","archive_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/downloads","issues_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/issues{/number}","pulls_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/pulls{/number}","milestones_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/milestones{/number}","notifications_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/labels{/name}","releases_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/releases{/id}","deployments_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/deployments","created_at":"2015-04-01T15:02:20Z","updated_at":"2016-01-11T09:40:10Z","pushed_at":"2016-03-07T15:21:49Z","git_url":"git://github.com/everypolitician/viewer-sinatra.git","ssh_url":"git@github.com:everypolitician/viewer-sinatra.git","clone_url":"https://github.com/everypolitician/viewer-sinatra.git","svn_url":"https://github.com/everypolitician/viewer-sinatra","homepage":"","size":10286,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":53,"forks":3,"open_issues":53,"watchers":0,"default_branch":"master"}},"base":{"label":"everypolitician:master","ref":"master","sha":"2f827f280ce4e81fa9df9d56d31741bc0956563c","user":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"repo":{"id":33254196,"name":"viewer-sinatra","full_name":"everypolitician/viewer-sinatra","owner":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everypolitician/viewer-sinatra","description":"Sinatra app for viewing EveryPolitician data","fork":false,"url":"https://api.github.com/repos/everypolitician/viewer-sinatra","forks_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/forks","keys_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/teams","hooks_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/hooks","issue_events_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/issues/events{/number}","events_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/events","assignees_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/assignees{/user}","branches_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/branches{/branch}","tags_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/tags","blobs_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/git/refs{/sha}","trees_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/statuses/{sha}","languages_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/languages","stargazers_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/stargazers","contributors_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/contributors","subscribers_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/subscribers","subscription_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/subscription","commits_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/commits{/sha}","git_commits_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/git/commits{/sha}","comments_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/comments{/number}","issue_comment_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/issues/comments{/number}","contents_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/contents/{+path}","compare_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/merges","archive_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/downloads","issues_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/issues{/number}","pulls_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/pulls{/number}","milestones_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/milestones{/number}","notifications_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/labels{/name}","releases_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/releases{/id}","deployments_url":"https://api.github.com/repos/everypolitician/viewer-sinatra/deployments","created_at":"2015-04-01T15:02:20Z","updated_at":"2016-01-11T09:40:10Z","pushed_at":"2016-03-07T15:21:49Z","git_url":"git://github.com/everypolitician/viewer-sinatra.git","ssh_url":"git@github.com:everypolitician/viewer-sinatra.git","clone_url":"https://github.com/everypolitician/viewer-sinatra.git","svn_url":"https://github.com/everypolitician/viewer-sinatra","homepage":"","size":10286,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":53,"forks":3,"open_issues":53,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/everypolitician/viewer-sinatra/pulls/4763"},"html":{"href":"https://github.com/everypolitician/viewer-sinatra/pull/4763"},"issue":{"href":"https://api.github.com/repos/everypolitician/viewer-sinatra/issues/4763"},"comments":{"href":"https://api.github.com/repos/everypolitician/viewer-sinatra/issues/4763/comments"},"review_comments":{"href":"https://api.github.com/repos/everypolitician/viewer-sinatra/pulls/4763/comments"},"review_comment":{"href":"https://api.github.com/repos/everypolitician/viewer-sinatra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/everypolitician/viewer-sinatra/pulls/4763/commits"},"statuses":{"href":"https://api.github.com/repos/everypolitician/viewer-sinatra/statuses/16fd647e3fe2b9bac320b8b4282b9e89d7bd1140"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tmtmtmtm","id":57483,"avatar_url":"https://avatars.githubusercontent.com/u/57483?v=3","gravatar_id":"","url":"https://api.github.com/users/tmtmtmtm","html_url":"https://github.com/tmtmtmtm","followers_url":"https://api.github.com/users/tmtmtmtm/followers","following_url":"https://api.github.com/users/tmtmtmtm/following{/other_user}","gists_url":"https://api.github.com/users/tmtmtmtm/gists{/gist_id}","starred_url":"https://api.github.com/users/tmtmtmtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmtmtmtm/subscriptions","organizations_url":"https://api.github.com/users/tmtmtmtm/orgs","repos_url":"https://api.github.com/users/tmtmtmtm/repos","events_url":"https://api.github.com/users/tmtmtmtm/events{/privacy}","received_events_url":"https://api.github.com/users/tmtmtmtm/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":160,"deletions":5,"changed_files":7}}