{"action":"closed","number":77,"pull_request":{"url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/77","id":39905308,"html_url":"https://github.com/alphagov/govuk_admin_template/pull/77","diff_url":"https://github.com/alphagov/govuk_admin_template/pull/77.diff","patch_url":"https://github.com/alphagov/govuk_admin_template/pull/77.patch","issue_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/77","number":77,"state":"closed","locked":false,"title":"Create table filter partial","user":{"login":"fofr","id":319055,"avatar_url":"https://avatars.githubusercontent.com/u/319055?v=3","gravatar_id":"","url":"https://api.github.com/users/fofr","html_url":"https://github.com/fofr","followers_url":"https://api.github.com/users/fofr/followers","following_url":"https://api.github.com/users/fofr/following{/other_user}","gists_url":"https://api.github.com/users/fofr/gists{/gist_id}","starred_url":"https://api.github.com/users/fofr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fofr/subscriptions","organizations_url":"https://api.github.com/users/fofr/orgs","repos_url":"https://api.github.com/users/fofr/repos","events_url":"https://api.github.com/users/fofr/events{/privacy}","received_events_url":"https://api.github.com/users/fofr/received_events","type":"User","site_admin":false},"body":"Instead of using the same (or slightly varied) markup in every filterable table in every app, use a common partial provided by the admin gem.\r\n\r\nSimplest usage:\r\n```erb\r\n<%= render partial: 'govuk_admin_template/table_filter' %>\r\n```\r\n\r\nUse within table:\r\n```erb\r\n<table class=\"table table-bordered table-hover\" data-module=\"filterable-table\">\r\n  <thead>\r\n    <tr class=\"table-header\">\r\n       …\r\n    </tr>\r\n    <%= render partial: 'govuk_admin_template/table_filter' %>\r\n  </thead>\r\n  …\r\n</table>\r\n```\r\n\r\ncc @dsingleton ","created_at":"2015-07-14T11:14:38Z","updated_at":"2015-07-15T09:08:24Z","closed_at":"2015-07-15T09:08:24Z","merged_at":"2015-07-15T09:08:24Z","merge_commit_sha":"e029b95dca13e6dba5611402402e56ecf91bd378","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/77/commits","review_comments_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/77/comments","review_comment_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/77/comments","statuses_url":"https://api.github.com/repos/alphagov/govuk_admin_template/statuses/fca1a5767108e72e369cf09613b63c85301974cf","head":{"label":"alphagov:partials","ref":"partials","sha":"fca1a5767108e72e369cf09613b63c85301974cf","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":19776412,"name":"govuk_admin_template","full_name":"alphagov/govuk_admin_template","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/govuk_admin_template","description":"Styles, scripts and templates for getting up and running with Bootstrap based backend admin apps.","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_admin_template","forks_url":"https://api.github.com/repos/alphagov/govuk_admin_template/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_admin_template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_admin_template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_admin_template/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_admin_template/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_admin_template/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_admin_template/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_admin_template/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_admin_template/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_admin_template/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_admin_template/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_admin_template/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_admin_template/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_admin_template/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_admin_template/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_admin_template/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_admin_template/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_admin_template/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_admin_template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_admin_template/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_admin_template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_admin_template/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_admin_template/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_admin_template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_admin_template/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_admin_template/releases{/id}","created_at":"2014-05-14T11:08:38Z","updated_at":"2015-07-02T13:30:44Z","pushed_at":"2015-07-15T09:08:24Z","git_url":"git://github.com/alphagov/govuk_admin_template.git","ssh_url":"git@github.com:alphagov/govuk_admin_template.git","clone_url":"https://github.com/alphagov/govuk_admin_template.git","svn_url":"https://github.com/alphagov/govuk_admin_template","homepage":"","size":1066,"stargazers_count":8,"watchers_count":8,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":8,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"d6045aa917e9b693912a160874bd4b1b4ca2554f","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":19776412,"name":"govuk_admin_template","full_name":"alphagov/govuk_admin_template","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/govuk_admin_template","description":"Styles, scripts and templates for getting up and running with Bootstrap based backend admin apps.","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_admin_template","forks_url":"https://api.github.com/repos/alphagov/govuk_admin_template/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_admin_template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_admin_template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_admin_template/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_admin_template/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_admin_template/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_admin_template/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_admin_template/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_admin_template/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_admin_template/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_admin_template/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_admin_template/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_admin_template/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_admin_template/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_admin_template/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_admin_template/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_admin_template/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_admin_template/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_admin_template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_admin_template/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_admin_template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_admin_template/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_admin_template/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_admin_template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_admin_template/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_admin_template/releases{/id}","created_at":"2014-05-14T11:08:38Z","updated_at":"2015-07-02T13:30:44Z","pushed_at":"2015-07-15T09:08:24Z","git_url":"git://github.com/alphagov/govuk_admin_template.git","ssh_url":"git@github.com:alphagov/govuk_admin_template.git","clone_url":"https://github.com/alphagov/govuk_admin_template.git","svn_url":"https://github.com/alphagov/govuk_admin_template","homepage":"","size":1066,"stargazers_count":8,"watchers_count":8,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/77"},"html":{"href":"https://github.com/alphagov/govuk_admin_template/pull/77"},"issue":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/77"},"comments":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/statuses/fca1a5767108e72e369cf09613b63c85301974cf"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"edds","id":35035,"avatar_url":"https://avatars.githubusercontent.com/u/35035?v=3","gravatar_id":"","url":"https://api.github.com/users/edds","html_url":"https://github.com/edds","followers_url":"https://api.github.com/users/edds/followers","following_url":"https://api.github.com/users/edds/following{/other_user}","gists_url":"https://api.github.com/users/edds/gists{/gist_id}","starred_url":"https://api.github.com/users/edds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edds/subscriptions","organizations_url":"https://api.github.com/users/edds/orgs","repos_url":"https://api.github.com/users/edds/repos","events_url":"https://api.github.com/users/edds/events{/privacy}","received_events_url":"https://api.github.com/users/edds/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":36,"deletions":10,"changed_files":3}}