Commit Graph

10 Commits

Author SHA1 Message Date
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