mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
prevent page gaps from appearing where they are not supposed to, fixes #98
This commit is contained in:
parent
1e794b11d8
commit
4abd5acd53
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ defmodule PhilomenaWeb.PaginationView do
|
|||
def last_page_path(page, route, params), do: page_path(route, params, page.total_pages)
|
||||
|
||||
def left_gap?(page) do
|
||||
page.page_number >= 5
|
||||
page.page_number >= 7
|
||||
end
|
||||
|
||||
def left_page_numbers(page) do
|
||||
|
@ -32,7 +32,7 @@ defmodule PhilomenaWeb.PaginationView do
|
|||
end
|
||||
|
||||
def right_gap?(page) do
|
||||
page.total_pages - page.page_number >= 5
|
||||
page.total_pages - page.page_number >= 6
|
||||
end
|
||||
|
||||
def right_page_numbers(page) do
|
||||
|
|
Loading…
Reference in a new issue