diff options
author | yp05327 <576951401@qq.com> | 2023-05-11 15:56:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 06:56:25 +0000 |
commit | b3af7484bc821d71cb20f6289f767119494bc81e (patch) | |
tree | 92d69fd4036f8d821e482435d147121d8605831e /routers/web/org/setting.go | |
parent | bcd0733a64012c50ed3d61305be290d1d523d252 (diff) | |
download | gitea-b3af7484bc821d71cb20f6289f767119494bc81e.tar.gz gitea-b3af7484bc821d71cb20f6289f767119494bc81e.zip |
Fix missing badges in org settings page (#24654)
Improve #24232
Before:
![image](https://github.com/go-gitea/gitea/assets/18380374/e5c5a7b8-e071-4713-b622-5ae8e272d6fd)
After:
![image](https://github.com/go-gitea/gitea/assets/18380374/5a9e38b5-384e-46c5-8400-dafebbd08fee)
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'routers/web/org/setting.go')
-rw-r--r-- | routers/web/org/setting.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go index 4111b13531..a8ad1daece 100644 --- a/routers/web/org/setting.go +++ b/routers/web/org/setting.go @@ -46,6 +46,7 @@ func Settings(ctx *context.Context) { ctx.Data["PageIsSettingsOptions"] = true ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility ctx.Data["RepoAdminChangeTeamAccess"] = ctx.Org.Organization.RepoAdminChangeTeamAccess + ctx.Data["ContextUser"] = ctx.ContextUser ctx.HTML(http.StatusOK, tplSettingsOptions) } |