pagination: minimum number of pages to show is now 5
Some checks failed
/ push (push) Has been cancelled
Some checks failed
/ push (push) Has been cancelled
This commit is contained in:
parent
5160030304
commit
cdc5cffefc
|
@ -73,7 +73,7 @@ templ Pagination(c *views.Context, data PaginationData) {
|
||||||
>
|
>
|
||||||
<div class="join">
|
<div class="join">
|
||||||
for i, count := 1, int64(0); count < data.Total; i, count = i+1, count+data.Limit {
|
for i, count := 1, int64(0); count < data.Total; i, count = i+1, count+data.Limit {
|
||||||
if data.GetTotalPage() <= 10 || data.getPageStatus(i) == pageStatusShow {
|
if data.GetTotalPage() <= 5 || data.getPageStatus(i) == pageStatusShow {
|
||||||
<a
|
<a
|
||||||
href={ c.URLWithExtraQuery(data.BaseURL, "offset", strconv.FormatInt(count, 10)) }
|
href={ c.URLWithExtraQuery(data.BaseURL, "offset", strconv.FormatInt(count, 10)) }
|
||||||
class={ utils.CXX(
|
class={ utils.CXX(
|
||||||
|
|
Loading…
Reference in a new issue