mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-26 11:04:27 -04: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
|
||||
|
||||
// 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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user