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

8 commits

Author SHA1 Message Date
Akira Matsuda
20a9a8cac5 rename 2011-02-28 01:10:15 +09:00
Akira Matsuda
cd50d41476 use PageProxy for current_page 2011-02-28 01:05:17 +09:00
Akira Matsuda
bfb09e61ad refactor: simplify pagination helper
* get rid of PaginationRenderer
* move Paginator to main helpers file
2011-02-28 01:05:16 +09:00
Akira Matsuda
6411476ff6 refactor: simplify pagination helper
* get rid of Renderable mixin
* get rid of TemplateWrapper
2011-02-28 01:04:14 +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
63b3bc129b fixes #23 do not reuse the @output_buffer but always create a new one for the paginator
otherwise, the paginator partial skips escape_javascript in some cases when rendered via Ajax call
2011-02-23 22:40:25 +09:00
Akira Matsuda
c84135bae0 keep AV::Base clean! 2011-02-21 03:24:41 +09:00
Akira Matsuda
60a91a9667 digging a directory and moving files into it makes me feel like being Lode Runner... 2011-02-21 03:23:14 +09:00
Renamed from lib/kaminari/helpers.rb (Browse further)