mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
Merge pull request #7958 from Matt-Yorkley/pagy-overflow
Add overflow handling on pagination
This commit is contained in:
@@ -9,3 +9,7 @@ Pagy::VARS[:items] = 100
|
||||
require 'pagy/extras/items'
|
||||
Pagy::VARS[:items_param] = :per_page
|
||||
Pagy::VARS[:max_items] = 100
|
||||
|
||||
# For handling requests for non-existant pages eg: page 35 when there are only 4 pages of results
|
||||
require 'pagy/extras/overflow'
|
||||
Pagy::VARS[:overflow] = :empty_page
|
||||
|
||||
Reference in New Issue
Block a user