mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
commit
53b5a24cea
3 changed files with 5 additions and 5 deletions
|
@ -59,7 +59,7 @@
|
||||||
* Now the `page_entries_info` method respects the `I18n.locale` value when pluralizing the `entry_name` option #899 [@hundred]
|
* Now the `page_entries_info` method respects the `I18n.locale` value when pluralizing the `entry_name` option #899 [@hundred]
|
||||||
* `require 'kaminari/core'` is no longer necessary when using `require 'kaminari/activerecord'` #896 [@yhara]
|
* `require 'kaminari/core'` is no longer necessary when using `require 'kaminari/activerecord'` #896 [@yhara]
|
||||||
* Added the `#current_per_page` method to inspect current value of `per_page` #875 [#bfad]
|
* Added the `#current_per_page` method to inspect current value of `per_page` #875 [#bfad]
|
||||||
* Better accesibility support by adding accessibility roles to pagination nav #848 [@frrrances]
|
* Better accessibility support by adding accessibility roles to pagination nav #848 [@frrrances]
|
||||||
|
|
||||||
### Bug Fixes:
|
### Bug Fixes:
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
|
|
||||||
* Extracted Grape support to kaminari-grape gem and removed it from the core
|
* Extracted Grape support to kaminari-grape gem and removed it from the core
|
||||||
|
|
||||||
* Splitted the gem into 3 internal gems:
|
* Split the gem into 3 internal gems:
|
||||||
* The core pagination logic (kaminari-core)
|
* The core pagination logic (kaminari-core)
|
||||||
* Active Record adapter (kaminari-activerecord)
|
* Active Record adapter (kaminari-activerecord)
|
||||||
* Action View adapter (kaminari-actionview)
|
* Action View adapter (kaminari-actionview)
|
||||||
|
@ -311,7 +311,7 @@
|
||||||
|
|
||||||
* Fixed displayed number of items on each page w/ Mongoid 2.4.x and MongoMapper #194 [@dblock]
|
* Fixed displayed number of items on each page w/ Mongoid 2.4.x and MongoMapper #194 [@dblock]
|
||||||
|
|
||||||
* Removed a unused local variable from templates from default tamplate #245 [@juno]
|
* Removed an unused local variable from templates from default template #245 [@juno]
|
||||||
|
|
||||||
* Fixed `page_entry_info` to use the value of `entry_name` option when given collection is empty or a PaginatableArray #265, #277 [@eitoball]
|
* Fixed `page_entry_info` to use the value of `entry_name` option when given collection is empty or a PaginatableArray #265, #277 [@eitoball]
|
||||||
|
|
||||||
|
|
|
@ -299,7 +299,7 @@ This option makes it easier to do things like A/B testing pagination templates/t
|
||||||
|
|
||||||
This simply renders a link to the next page. This would be helpful for creating a Twitter-like pagination feature.
|
This simply renders a link to the next page. This would be helpful for creating a Twitter-like pagination feature.
|
||||||
|
|
||||||
The helper methods support a `params` option to further specify the link. If `format` needs to be set, inlude it in the `params` hash.
|
The helper methods support a `params` option to further specify the link. If `format` needs to be set, include it in the `params` hash.
|
||||||
|
|
||||||
```erb
|
```erb
|
||||||
<%= link_to_next_page @items, 'Next Page', params: {controller: 'foo', action: 'bar', format: :turbo_stream} %>
|
<%= link_to_next_page @items, 'Next Page', params: {controller: 'foo', action: 'bar', format: :turbo_stream} %>
|
||||||
|
|
|
@ -193,7 +193,7 @@ module Kaminari
|
||||||
#
|
#
|
||||||
# By default, the message will use the humanized class name of objects
|
# By default, the message will use the humanized class name of objects
|
||||||
# in collection: for instance, "project types" for ProjectType models.
|
# in collection: for instance, "project types" for ProjectType models.
|
||||||
# The namespace will be cutted out and only the last name will be used.
|
# The namespace will be cut out and only the last name will be used.
|
||||||
# Override this with the <tt>:entry_name</tt> parameter:
|
# Override this with the <tt>:entry_name</tt> parameter:
|
||||||
#
|
#
|
||||||
# <%= page_entries_info @posts, entry_name: 'item' %>
|
# <%= page_entries_info @posts, entry_name: 'item' %>
|
||||||
|
|
Loading…
Reference in a new issue