{"issue":{"milestone":null,"user":{"id":121186,"login":"bewildergeist","url":"https://api.github.com/users/bewildergeist","avatar_url":"https://secure.gravatar.com/avatar/ad40f290b8f29f0fa684550d891b904e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ad40f290b8f29f0fa684550d891b904e"},"title":"Various improvements to the pagination helper","created_at":"2011-12-12T21:29:26Z","labels":[],"updated_at":"2011-12-17T22:18:26Z","state":"open","id":2528800,"html_url":"https://github.com/greystate/Greystate-XSLT-Helpers/issues/1","closed_at":null,"pull_request":{"patch_url":"https://github.com/greystate/Greystate-XSLT-Helpers/pull/1.patch","html_url":"https://github.com/greystate/Greystate-XSLT-Helpers/pull/1","diff_url":"https://github.com/greystate/Greystate-XSLT-Helpers/pull/1.diff"},"body":"I've made several small changes to the pagination helper, and if you find any of them useful you're very welcome to merge them into the original. \r\n\r\nThe commits are fairly atomic, so it should be possible to cherrypick only relevant changes.\r\n\r\nI realize that not everyone will be using pagination in connection with a search string/parameter, but I've made it optional, so it'll silently \"disappear\" if not in use. And it should be easily adaptable to non-search situations where some other querystring needs to be passed from page to page.","number":1,"url":"https://api.github.com/repos/greystate/Greystate-XSLT-Helpers/issues/1","comments":3,"assignee":null},"comment":{"user":{"id":5463,"login":"greystate","url":"https://api.github.com/users/greystate","avatar_url":"https://secure.gravatar.com/avatar/286ea7abe73e582c6254956992406a0f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"286ea7abe73e582c6254956992406a0f"},"created_at":"2011-12-17T22:18:26Z","updated_at":"2011-12-17T22:18:26Z","id":3191823,"body":"Working my way through these :-)\r\n\r\nSo regarding **Only show next and prev links if relevant**: The reason my original adds the text (but not the link, mind you), is so the pager links won't shift around when navigating between pages. I use CSS to make sure they're visually different (subdued) when inactive.\r\n\r\nDo you normally do something else in a situation like this, to make sure that the **1 2 3 4 5** keep their position between page views where the **Prev** and **Next** links would come and go?  ","url":"https://api.github.com/repos/greystate/Greystate-XSLT-Helpers/issues/comments/3191823"},"action":"created"}