aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>2023-09-07 09:44:47 +0800
committerGitHub <noreply@github.com>2023-09-07 01:44:47 +0000
commit1ee4882b8827c3fc5feb7fd87559e1f292da41ea (patch)
tree161a935cfd231bd8013c913263d46b06019613f6 /routers
parent419003adb24495d804b276d2c7d59b170d0a56b7 (diff)
downloadgitea-1ee4882b8827c3fc5feb7fd87559e1f292da41ea.tar.gz
gitea-1ee4882b8827c3fc5feb7fd87559e1f292da41ea.zip
Fix the missing repo count (#26942)
The commit (https://github.com/go-gitea/gitea/commit/958d148043a6ace08776b1fd5ec0a5859144dea0) forgot two pages :stuck_out_tongue_closed_eyes: ![ksnip_20230906-182626](https://github.com/go-gitea/gitea/assets/70063547/6da529e9-3028-46fb-8065-abfd804a078b) BTW, the `leave` button is in a weird position
Diffstat (limited to 'routers')
-rw-r--r--routers/web/org/teams.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/routers/web/org/teams.go b/routers/web/org/teams.go
index 1e0287fe27..38bc8b4e3a 100644
--- a/routers/web/org/teams.go
+++ b/routers/web/org/teams.go
@@ -370,6 +370,12 @@ func TeamMembers(ctx *context.Context) {
ctx.Data["Title"] = ctx.Org.Team.Name
ctx.Data["PageIsOrgTeams"] = true
ctx.Data["PageIsOrgTeamMembers"] = true
+
+ if err := shared_user.LoadHeaderCount(ctx); err != nil {
+ ctx.ServerError("LoadHeaderCount", err)
+ return
+ }
+
if err := ctx.Org.Team.LoadMembers(ctx); err != nil {
ctx.ServerError("GetMembers", err)
return
@@ -392,6 +398,12 @@ func TeamRepositories(ctx *context.Context) {
ctx.Data["Title"] = ctx.Org.Team.Name
ctx.Data["PageIsOrgTeams"] = true
ctx.Data["PageIsOrgTeamRepos"] = true
+
+ if err := shared_user.LoadHeaderCount(ctx); err != nil {
+ ctx.ServerError("LoadHeaderCount", err)
+ return
+ }
+
if err := ctx.Org.Team.LoadRepositories(ctx); err != nil {
ctx.ServerError("GetRepositories", err)
return