diff options
author | yp05327 <576951401@qq.com> | 2023-09-06 15:38:14 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 14:38:14 +0800 |
commit | 0850be6750b3df69e2eb5c52e7df53705c517fbc (patch) | |
tree | 7e83b220b36af5cbd99cd9d49bf80e886c82f06b /modules/context/repo.go | |
parent | 31c92d9695a43ff77a3eef2e8383343ef60f8ae7 (diff) | |
download | gitea-0850be6750b3df69e2eb5c52e7df53705c517fbc.tar.gz gitea-0850be6750b3df69e2eb5c52e7df53705c517fbc.zip |
Fix the display of org level badges (#26504)
Follow #24654 #22705 #24232
In some pages we still have missing badges, for example:
![image](https://github.com/go-gitea/gitea/assets/18380374/f57fae6d-95ad-4996-8881-160c9cd27768)
![image](https://github.com/go-gitea/gitea/assets/18380374/11e86d43-b715-4d14-bdf0-51bf8b5c7b01)
![image](https://github.com/go-gitea/gitea/assets/18380374/61c514e7-d8f6-4c93-a61f-60604619e3a7)
Diffstat (limited to 'modules/context/repo.go')
-rw-r--r-- | modules/context/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go index f5c56cf833..8a16d311b1 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -471,6 +471,7 @@ func RepoAssignment(ctx *Context) context.CancelFunc { } ctx.Repo.Owner = owner ctx.ContextUser = owner + ctx.Data["ContextUser"] = ctx.ContextUser ctx.Data["Username"] = ctx.Repo.Owner.Name // redirect link to wiki |