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
03d7553284 refactor the template finder
a tag itself knows its best template
2011-02-11 11:23:09 +09:00
Akira Matsuda
6e8ad122fb cleverer way of finding partial templates
for example, while FirstPageLink extends PageLink, the template finder searches the file in the following order.
1. app/views/kaminari/_first_page_link
2. app/views/kaminari/_page_link
3. ENGINE/kaminari/_first_page_link
2011-02-10 21:50:09 +09:00
Akira Matsuda
fbbe87d965 do not insert an LF when joining
because the extra LF will break the HTML design in some cases
2011-02-10 07:19:10 +09:00
Akira Matsuda
f44afe5995 fixes #3 per_page is available in partial templates now 2011-02-09 01:41:43 +09:00
Akira Matsuda
23186e5c9c fixes #2 show nothing when num_page == 1 2011-02-09 01:41:43 +09:00
Akira Matsuda
34b42e3e40 Ajaxify the links! 2011-02-07 20:47:06 +09:00
Akira Matsuda
2c75024afd fixes #1 reset content_for :kaminari_paginator_tags before rendering 2011-02-07 10:53:48 +09:00
Akira Matsuda
20484f9c02 rename method
s/tagify/tagify_links/g
2011-02-07 00:12:08 +09:00
Akira Matsuda
2e406a7bcc partialize the outer div 2011-02-07 00:05:44 +09:00
Akira Matsuda
e084dc4b36 suppress logging when rendering each partial 2011-02-06 22:09:27 +09:00
Akira Matsuda
8036619ae6 default PER_PAGE to 25 2011-02-06 20:11:45 +09:00
Akira Matsuda
5b87a4b18f works on AR 3.0 now!
On AR 3.0, @inheritable_attributes is still nil when "inherited" in some reason.
So, this is a workaround that copies the values from the parent class.
2011-02-05 23:46:23 +09:00
Akira Matsuda
fa674a64cc partialize tags 2011-02-05 23:45:49 +09:00
Akira Matsuda
7e38db7542 enginize 2011-02-05 23:45:49 +09:00
Akira Matsuda
eccdf325d7 classify tags 2011-02-05 23:45:49 +09:00
Akira Matsuda
bd2f1b5e23 the first implementation of pagination helper 2011-02-05 23:45:49 +09:00
Akira Matsuda
bfa1449f16 implement AR scopes 2011-02-05 23:45:49 +09:00