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

17 commits

Author SHA1 Message Date
Akira Matsuda
c96d77f5d8 a simple "Twitter like" pagination link that creates a link to the next page
via http://stackoverflow.com/questions/5734597/rails-3-more-ajax-pagination-with-kaminari
2011-05-05 23:41:17 +09:00
Akira Matsuda
686b1b46c0 use helper instead of polluting Object 2011-05-05 23:28:41 +09:00
Akira Matsuda
9d0eebe38e format 2011-05-04 00:19:51 +09:00
Luiz Felipe
80cb34df46 added test and changed paginate method to return a string 2011-04-26 09:56:36 -03: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
468fccfa39 refs #30 specs for new pagination helper 2011-02-27 20:28:00 +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
2353584af5 refactor: split PaginationRenderer's responsibility 2011-02-16 22:56:05 +09:00
Akira Matsuda
8a3803697f I said, Tag is not Renderable 2011-02-14 11:23:52 +09:00
Akira Matsuda
9f3d3944cb refactor tags (Part II)
* prefer more testable and clearer way
* actually fixed a bug that Link was_not a Page. now everything conforms to the document, I believe
2011-02-13 22:59:25 +09:00
Akira Matsuda
6bfab14f10 :params option for the paginator
this overrides each pagination link's url_for option
2011-02-13 18:37:04 +09:00
Akira Matsuda
dd77a7dcb3 introduce modules to characterize each tag 2011-02-11 16:53:37 +09:00
Akira Matsuda
23186e5c9c fixes #2 show nothing when num_page == 1 2011-02-09 01:41:43 +09:00
Akira Matsuda
20484f9c02 rename method
s/tagify/tagify_links/g
2011-02-07 00:12:08 +09:00
Akira Matsuda
fa674a64cc partialize tags 2011-02-05 23:45:49 +09:00