mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
⛳
This commit is contained in:
parent
106273c202
commit
bd8fabafe7
1 changed files with 1 additions and 3 deletions
|
@ -106,9 +106,7 @@ module Kaminari
|
|||
if collection.total_pages < 2
|
||||
t('helpers.page_entries_info.one_page.display_entries', entry_name: entry_name, count: collection.total_count)
|
||||
else
|
||||
first = collection.offset_value + 1
|
||||
last = (sum = collection.offset_value + collection.limit_value) > collection.total_count ? collection.total_count : sum
|
||||
t('helpers.page_entries_info.more_pages.display_entries', entry_name: entry_name, first: first, last: last, total: collection.total_count)
|
||||
t('helpers.page_entries_info.more_pages.display_entries', entry_name: entry_name, first: collection.offset_value + 1, last: [collection.offset_value + collection.limit_value, collection.total_count].min, total: collection.total_count)
|
||||
end.html_safe
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue