{"action":"created","issue":{"url":"https://api.github.com/repos/opf/openproject/issues/3420","labels_url":"https://api.github.com/repos/opf/openproject/issues/3420/labels{/name}","comments_url":"https://api.github.com/repos/opf/openproject/issues/3420/comments","events_url":"https://api.github.com/repos/opf/openproject/issues/3420/events","html_url":"https://github.com/opf/openproject/pull/3420","id":103306773,"number":3420,"title":"[21234] Restyle PaginationHelper to use  styleguide pagination","user":{"login":"oliverguenther","id":459462,"avatar_url":"https://avatars.githubusercontent.com/u/459462?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverguenther","html_url":"https://github.com/oliverguenther","followers_url":"https://api.github.com/users/oliverguenther/followers","following_url":"https://api.github.com/users/oliverguenther/following{/other_user}","gists_url":"https://api.github.com/users/oliverguenther/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverguenther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverguenther/subscriptions","organizations_url":"https://api.github.com/users/oliverguenther/orgs","repos_url":"https://api.github.com/users/oliverguenther/repos","events_url":"https://api.github.com/users/oliverguenther/events{/privacy}","received_events_url":"https://api.github.com/users/oliverguenther/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opf/openproject/labels/housekeeping","name":"housekeeping","color":"dd99dd"},{"url":"https://api.github.com/repos/opf/openproject/labels/Needs%20Review","name":"Needs Review","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"NobodysNightmare","id":453584,"avatar_url":"https://avatars.githubusercontent.com/u/453584?v=3","gravatar_id":"","url":"https://api.github.com/users/NobodysNightmare","html_url":"https://github.com/NobodysNightmare","followers_url":"https://api.github.com/users/NobodysNightmare/followers","following_url":"https://api.github.com/users/NobodysNightmare/following{/other_user}","gists_url":"https://api.github.com/users/NobodysNightmare/gists{/gist_id}","starred_url":"https://api.github.com/users/NobodysNightmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NobodysNightmare/subscriptions","organizations_url":"https://api.github.com/users/NobodysNightmare/orgs","repos_url":"https://api.github.com/users/NobodysNightmare/repos","events_url":"https://api.github.com/users/NobodysNightmare/events{/privacy}","received_events_url":"https://api.github.com/users/NobodysNightmare/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-08-26T16:06:15Z","updated_at":"2015-08-27T12:48:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opf/openproject/pulls/3420","html_url":"https://github.com/opf/openproject/pull/3420","diff_url":"https://github.com/opf/openproject/pull/3420.diff","patch_url":"https://github.com/opf/openproject/pull/3420.patch"},"body":"This commit updates the PaginationHelper to use the styleguide\r\npagination style by overriding the `will_paginate` LinkRenderer. \r\n\r\nI originally wanted to encapsulate the whole rendering of our pagination (pages, range and per_page settings) inside the LinkRenderer, however `will_paginate` breaks early when less than two pages are showing.\r\nHowever, the pagination range and per_page settings should be shown even in this case, as the user otherwise cannot revert their `per_page` choice (e.g., scaling back down from 100 items to 20 or so).\r\n\r\nThis also provides a minimal right padding for the `pagination--label`, as its otherwise too close to the per_page options (cf. screenshot)\r\n\r\n![bildschirmfoto 2015-08-26 um 17 26 55](https://cloud.githubusercontent.com/assets/459462/9498968/d893c4ca-4c1c-11e5-9fc0-9acfc2011103.png)\r\n\r\n\r\nRelevant work package:\r\nhttps://community.openproject.org/work_packages/21234"},"comment":{"url":"https://api.github.com/repos/opf/openproject/issues/comments/135411263","html_url":"https://github.com/opf/openproject/pull/3420#issuecomment-135411263","issue_url":"https://api.github.com/repos/opf/openproject/issues/3420","id":135411263,"user":{"login":"NobodysNightmare","id":453584,"avatar_url":"https://avatars.githubusercontent.com/u/453584?v=3","gravatar_id":"","url":"https://api.github.com/users/NobodysNightmare","html_url":"https://github.com/NobodysNightmare","followers_url":"https://api.github.com/users/NobodysNightmare/followers","following_url":"https://api.github.com/users/NobodysNightmare/following{/other_user}","gists_url":"https://api.github.com/users/NobodysNightmare/gists{/gist_id}","starred_url":"https://api.github.com/users/NobodysNightmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NobodysNightmare/subscriptions","organizations_url":"https://api.github.com/users/NobodysNightmare/orgs","repos_url":"https://api.github.com/users/NobodysNightmare/repos","events_url":"https://api.github.com/users/NobodysNightmare/events{/privacy}","received_events_url":"https://api.github.com/users/NobodysNightmare/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T12:48:09Z","updated_at":"2015-08-27T12:48:09Z","body":"LGTM :+1: \r\n\r\nNot waiting for travis since oyu only removed CSS and LSG, but nothing \"travis visible\"..."}}