{"action":"opened","number":1667,"pull_request":{"url":"https://api.github.com/repos/jenkins-infra/jenkins.io/pulls/1667","id":202963089,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyOTYzMDg5","html_url":"https://github.com/jenkins-infra/jenkins.io/pull/1667","diff_url":"https://github.com/jenkins-infra/jenkins.io/pull/1667.diff","patch_url":"https://github.com/jenkins-infra/jenkins.io/pull/1667.patch","issue_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/issues/1667","number":1667,"state":"open","locked":false,"title":"[WEBSITE-491] Fix pagination","user":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"body":"[WEBSITE-491](https://issues.jenkins-ci.org/browse/WEBSITE-491)\r\n\r\n* Page 4 was never linked.\r\n* The first skip section was always only 1 page (page 4)\r\n* Both skip sections were shown side by side when on page 1\r\n\r\nThis fixes all of this, always showing the current page, the two pages before and after it, and the first and last three pages.\r\n\r\n## Before\r\n\r\n![before1](https://user-images.githubusercontent.com/1831569/43026466-27522c04-8c76-11e8-865e-f11310d805ed.png)\r\n![before3](https://user-images.githubusercontent.com/1831569/43026467-28c0dbf8-8c76-11e8-9c40-e76e2e3349a4.png)\r\n![before5](https://user-images.githubusercontent.com/1831569/43026468-2a3a2a70-8c76-11e8-8e12-c05fb0cca250.png)\r\n![before7](https://user-images.githubusercontent.com/1831569/43026470-2b5d2e84-8c76-11e8-900b-d5a697237996.png)\r\n![before15](https://user-images.githubusercontent.com/1831569/43026476-2ee0fea0-8c76-11e8-9b63-0adf936be481.png)\r\n![before39](https://user-images.githubusercontent.com/1831569/43026481-30128884-8c76-11e8-9091-1f637df0b413.png)\r\n\r\n## After\r\n\r\n![after1](https://user-images.githubusercontent.com/1831569/43026575-98112e5e-8c76-11e8-9b90-95f031edff56.png)\r\n![after3](https://user-images.githubusercontent.com/1831569/43026577-99c82784-8c76-11e8-8db9-a130ed26ffab.png)\r\n![after5](https://user-images.githubusercontent.com/1831569/43026581-9aec0252-8c76-11e8-8051-160532198873.png)\r\n![after7](https://user-images.githubusercontent.com/1831569/43026584-9bd8ab98-8c76-11e8-9e8f-44434653824b.png)\r\n![after15](https://user-images.githubusercontent.com/1831569/43026586-9d1e6d6c-8c76-11e8-932e-9dee14e89c79.png)\r\n![after39](https://user-images.githubusercontent.com/1831569/43026589-9eeefbde-8c76-11e8-9936-3e22df3b0047.png)\r\n![after75](https://user-images.githubusercontent.com/1831569/43026613-bec118fc-8c76-11e8-8ead-76a720c6f238.png)\r\n","created_at":"2018-07-20T21:43:52Z","updated_at":"2018-07-20T21:43:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/pulls/1667/commits","review_comments_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/pulls/1667/comments","review_comment_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/issues/1667/comments","statuses_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/statuses/9dad1e47636ba5e06be59a8d331e9a604cf756bd","head":{"label":"daniel-beck:WEBSITE-491","ref":"WEBSITE-491","sha":"9dad1e47636ba5e06be59a8d331e9a604cf756bd","user":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"repo":{"id":44983695,"node_id":"MDEwOlJlcG9zaXRvcnk0NDk4MzY5NQ==","name":"jenkins.io","full_name":"daniel-beck/jenkins.io","owner":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daniel-beck/jenkins.io","description":"A static site for the Jenkins automation server","fork":true,"url":"https://api.github.com/repos/daniel-beck/jenkins.io","forks_url":"https://api.github.com/repos/daniel-beck/jenkins.io/forks","keys_url":"https://api.github.com/repos/daniel-beck/jenkins.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daniel-beck/jenkins.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daniel-beck/jenkins.io/teams","hooks_url":"https://api.github.com/repos/daniel-beck/jenkins.io/hooks","issue_events_url":"https://api.github.com/repos/daniel-beck/jenkins.io/issues/events{/number}","events_url":"https://api.github.com/repos/daniel-beck/jenkins.io/events","assignees_url":"https://api.github.com/repos/daniel-beck/jenkins.io/assignees{/user}","branches_url":"https://api.github.com/repos/daniel-beck/jenkins.io/branches{/branch}","tags_url":"https://api.github.com/repos/daniel-beck/jenkins.io/tags","blobs_url":"https://api.github.com/repos/daniel-beck/jenkins.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daniel-beck/jenkins.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daniel-beck/jenkins.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/daniel-beck/jenkins.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daniel-beck/jenkins.io/statuses/{sha}","languages_url":"https://api.github.com/repos/daniel-beck/jenkins.io/languages","stargazers_url":"https://api.github.com/repos/daniel-beck/jenkins.io/stargazers","contributors_url":"https://api.github.com/repos/daniel-beck/jenkins.io/contributors","subscribers_url":"https://api.github.com/repos/daniel-beck/jenkins.io/subscribers","subscription_url":"https://api.github.com/repos/daniel-beck/jenkins.io/subscription","commits_url":"https://api.github.com/repos/daniel-beck/jenkins.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/daniel-beck/jenkins.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/daniel-beck/jenkins.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/daniel-beck/jenkins.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/daniel-beck/jenkins.io/contents/{+path}","compare_url":"https://api.github.com/repos/daniel-beck/jenkins.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daniel-beck/jenkins.io/merges","archive_url":"https://api.github.com/repos/daniel-beck/jenkins.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daniel-beck/jenkins.io/downloads","issues_url":"https://api.github.com/repos/daniel-beck/jenkins.io/issues{/number}","pulls_url":"https://api.github.com/repos/daniel-beck/jenkins.io/pulls{/number}","milestones_url":"https://api.github.com/repos/daniel-beck/jenkins.io/milestones{/number}","notifications_url":"https://api.github.com/repos/daniel-beck/jenkins.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daniel-beck/jenkins.io/labels{/name}","releases_url":"https://api.github.com/repos/daniel-beck/jenkins.io/releases{/id}","deployments_url":"https://api.github.com/repos/daniel-beck/jenkins.io/deployments","created_at":"2015-10-26T16:58:31Z","updated_at":"2018-07-14T15:32:11Z","pushed_at":"2018-07-20T21:39:09Z","git_url":"git://github.com/daniel-beck/jenkins.io.git","ssh_url":"git@github.com:daniel-beck/jenkins.io.git","clone_url":"https://github.com/daniel-beck/jenkins.io.git","svn_url":"https://github.com/daniel-beck/jenkins.io","homepage":"http://jenkins.lasagna.io","size":197160,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkins-infra:master","ref":"master","sha":"3edba38c032dd5c47c2bee830781cf3844ebb31f","user":{"login":"jenkins-infra","id":7422698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MjI2OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/7422698?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkins-infra","html_url":"https://github.com/jenkins-infra","followers_url":"https://api.github.com/users/jenkins-infra/followers","following_url":"https://api.github.com/users/jenkins-infra/following{/other_user}","gists_url":"https://api.github.com/users/jenkins-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkins-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkins-infra/subscriptions","organizations_url":"https://api.github.com/users/jenkins-infra/orgs","repos_url":"https://api.github.com/users/jenkins-infra/repos","events_url":"https://api.github.com/users/jenkins-infra/events{/privacy}","received_events_url":"https://api.github.com/users/jenkins-infra/received_events","type":"Organization","site_admin":false},"repo":{"id":44886691,"node_id":"MDEwOlJlcG9zaXRvcnk0NDg4NjY5MQ==","name":"jenkins.io","full_name":"jenkins-infra/jenkins.io","owner":{"login":"jenkins-infra","id":7422698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MjI2OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/7422698?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkins-infra","html_url":"https://github.com/jenkins-infra","followers_url":"https://api.github.com/users/jenkins-infra/followers","following_url":"https://api.github.com/users/jenkins-infra/following{/other_user}","gists_url":"https://api.github.com/users/jenkins-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkins-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkins-infra/subscriptions","organizations_url":"https://api.github.com/users/jenkins-infra/orgs","repos_url":"https://api.github.com/users/jenkins-infra/repos","events_url":"https://api.github.com/users/jenkins-infra/events{/privacy}","received_events_url":"https://api.github.com/users/jenkins-infra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkins-infra/jenkins.io","description":"A static site for the Jenkins automation server","fork":false,"url":"https://api.github.com/repos/jenkins-infra/jenkins.io","forks_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/forks","keys_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/teams","hooks_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/hooks","issue_events_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/issues/events{/number}","events_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/events","assignees_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/assignees{/user}","branches_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/branches{/branch}","tags_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/tags","blobs_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/languages","stargazers_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/stargazers","contributors_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/contributors","subscribers_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/subscribers","subscription_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/subscription","commits_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/contents/{+path}","compare_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/merges","archive_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/downloads","issues_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/issues{/number}","pulls_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/labels{/name}","releases_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/releases{/id}","deployments_url":"https://api.github.com/repos/jenkins-infra/jenkins.io/deployments","created_at":"2015-10-24T22:02:57Z","updated_at":"2018-07-20T21:19:38Z","pushed_at":"2018-07-20T21:19:34Z","git_url":"git://github.com/jenkins-infra/jenkins.io.git","ssh_url":"git@github.com:jenkins-infra/jenkins.io.git","clone_url":"https://github.com/jenkins-infra/jenkins.io.git","svn_url":"https://github.com/jenkins-infra/jenkins.io","homepage":"https://jenkins.io","size":204372,"stargazers_count":94,"watchers_count":94,"language":"HTML","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":355,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":355,"open_issues":8,"watchers":94,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkins-infra/jenkins.io/pulls/1667"},"html":{"href":"https://github.com/jenkins-infra/jenkins.io/pull/1667"},"issue":{"href":"https://api.github.com/repos/jenkins-infra/jenkins.io/issues/1667"},"comments":{"href":"https://api.github.com/repos/jenkins-infra/jenkins.io/issues/1667/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkins-infra/jenkins.io/pulls/1667/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkins-infra/jenkins.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkins-infra/jenkins.io/pulls/1667/commits"},"statuses":{"href":"https://api.github.com/repos/jenkins-infra/jenkins.io/statuses/9dad1e47636ba5e06be59a8d331e9a604cf756bd"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":23,"deletions":17,"changed_files":1}}
{"actor":{"display_login":"daniel-beck"}}