1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
Commit graph

11 commits

Author SHA1 Message Date
Akira Matsuda
cd50d41476 use PageProxy for current_page 2011-02-28 01:05:17 +09:00
Akira Matsuda
393943a50e refs #30 add real first/last page links, and use them by default instead of outer window
* :window, :outer_window, :left, :right will be interpreted similarly to how they were, except the supplied N would be the number of pages you actually get. 0 means disable for the outer windows
* outer windows will be disabled by default in favor of first/last links
* include a "disabled" class when appropriate, and always include the label text (but no link tag when current page). Users that want these tags to disappear completely when inapplicable can style them to display: none. (Similarly for "first" and "last".)
* changed the default labels - double angle quotes for "first" and "last", single angle quotes for "previous" and "next". (Consider a standard set of video or audio transport controls: << < stop > >>)
2011-02-25 12:33:23 +09:00
Akira Matsuda
4beef97cea fixes #28 a page can be both current and first or last
merge _current_page, _first_page_link, _last_page_link and _page_link into one _page partial
2011-02-25 10:35:21 +09:00
Akira Matsuda
4423fae54e ensure it works on 3.0 2011-02-17 00:46:34 +09:00
Akira Matsuda
b4263a8264 cosmetics 2011-02-16 23:24:31 +09:00
Akira Matsuda
a1a3d64a8d bring link_tag generation logic back into the main logic 2011-02-16 22:56:05 +09:00
Akira Matsuda
5b76f94b51 move the whole pagination logic to the paginator partial so that users can see and edit the logic
this removes an internal hack but introduces one or two other kind of black magics...
2011-02-16 22:56:05 +09:00
Akira Matsuda
da88729c9e update views according to new convention 2011-02-11 17:56:20 +09:00
Akira Matsuda
2a70c6ef77 document comments for available :locals values for each partial 2011-02-09 08:13:09 +09:00
Akira Matsuda
0c12f5b639 use HTML5 <nav> tag for the container 2011-02-08 11:25:43 +09:00
Akira Matsuda
ae8df1a6d1 Haml version of templates 2011-02-07 11:31:58 +09:00