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

26 commits

Author SHA1 Message Date
Akira Matsuda
ae5b7482eb refs #30 "the disabled items should simply not be emitted, even as an empty span"
"If you want to force those items to display, you can edit the partial."
2011-04-14 08:14:17 +09:00
Akira Matsuda
cd50d41476 use PageProxy for current_page 2011-02-28 01:05:17 +09:00
Akira Matsuda
afc7dc1b44 refs #30 simplify rel attribute
* do not output rel="start" by default
* do not output rel on first_page and last_page
2011-02-27 19:20:40 +09:00
Garth Snyder
1c6f72802b Some suggested changes to classes and rels 2011-02-25 14:31:39 -08: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
8736a62e29 cs'" 2011-02-23 21:44:12 +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
b686519006 I18n 2011-02-13 05:57:16 +09:00
Akira Matsuda
ec9fff047f moved bundled themes to amatsuda/kaminari_themes repo 2011-02-13 03:41:01 +09:00
Akira Matsuda
3562a44899 update sample themes 2011-02-11 17:56:20 +09:00
Akira Matsuda
da88729c9e update views according to new convention 2011-02-11 17:56:20 +09:00
Akira Matsuda
6b9bf3530d no need for these meaningless files now! 2011-02-11 11:23:09 +09:00
Akira Matsuda
4f39f57068 githubish theme... 2011-02-10 07:19:10 +09:00
Akira Matsuda
3623f2c688 oops! 2011-02-10 07:19:10 +09:00
Akira Matsuda
269bb165e0 googlish theme... 2011-02-09 21:34:42 +09:00
Akira Matsuda
1a06de256d no need for link_to_if 2011-02-09 12:56:35 +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
34b42e3e40 Ajaxify the links! 2011-02-07 20:47:06 +09:00
Akira Matsuda
ae8df1a6d1 Haml version of templates 2011-02-07 11:31:58 +09:00
Akira Matsuda
2e406a7bcc partialize the outer div 2011-02-07 00:05:44 +09:00
Akira Matsuda
fa674a64cc partialize tags 2011-02-05 23:45:49 +09:00