mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-14 14:46:59 +01:00
fix pagination in admin dashboard
This commit is contained in:
parent
7a44d4afc4
commit
6476a7b775
@ -96,7 +96,9 @@ func IPs(ctx *context.Context) {
|
|||||||
ctx.Data["Keyword"] = keyword
|
ctx.Data["Keyword"] = keyword
|
||||||
|
|
||||||
// Setup pagination
|
// Setup pagination
|
||||||
ctx.Data["Page"] = context.NewPagination(int(count), setting.UI.Admin.UserPagingNum, page, 5)
|
pager := context.NewPagination(int(count), setting.UI.Admin.UserPagingNum, page, 5)
|
||||||
|
pager.AddParamFromRequest(ctx.Req)
|
||||||
|
ctx.Data["Page"] = pager
|
||||||
|
|
||||||
ctx.HTML(http.StatusOK, tplIPs)
|
ctx.HTML(http.StatusOK, tplIPs)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user