1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-09 11:08:19 +00:00

Fix admin user list pagination (#18957) (#18960)

This commit is contained in:
Otto Richter (fnetX)
2022-03-02 00:00:03 +01:00
committed by GitHub
parent a765410d0f
commit 36e96e3481
2 changed files with 10 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ func RenderUserSearch(ctx *context.Context, opts *user_model.SearchUserOptions,
pager := context.NewPagination(int(count), opts.PageSize, opts.Page, 5)
pager.SetDefaultParams(ctx)
pager.SetUserFilterParams(ctx)
ctx.Data["Page"] = pager
ctx.HTML(http.StatusOK, tplName)