pagination: minimum number of pages to show is now 5
Some checks failed
/ push (push) Has been cancelled

This commit is contained in:
Tigor Hutasuhut 2024-05-12 22:51:48 +07:00
parent 5160030304
commit cdc5cffefc

View file

@ -73,7 +73,7 @@ templ Pagination(c *views.Context, data PaginationData) {
>
<div class="join">
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
href={ c.URLWithExtraQuery(data.BaseURL, "offset", strconv.FormatInt(count, 10)) }
class={ utils.CXX(