1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 02:08:36 +00:00

Count only visible repos on profile (#25928)

Fixes #25914
This commit is contained in:
JakobDev
2023-08-11 19:08:05 +02:00
committed by GitHub
parent 7e382a5555
commit f3fbb7c67d
9 changed files with 211 additions and 106 deletions

View File

@@ -269,6 +269,12 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileGi
ctx.Data["Repos"] = repos
ctx.Data["Total"] = total
err = shared_user.LoadHeaderCount(ctx)
if err != nil {
ctx.ServerError("LoadHeaderCount", err)
return
}
pager := context.NewPagination(total, pagingNum, page, 5)
pager.SetDefaultParams(ctx)
pager.AddParam(ctx, "tab", "TabName")