forked from forgejo/forgejo
Add missing badges in user profile for /projects and /packages (#24232)
- Implement fix for user and organization page - Add necessary ctx.Data When switching tabs on `user profile page` the badges are shown for `/gitea_user?tab=stars`, `/gitea_user?tab=activity` and missing under `gitea_user/-/projects` and `gitea_user/-/packages` This was added for users and organizations. Before:  After:  Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
30ea09c277
commit
136d7492ff
3 changed files with 8 additions and 3 deletions
|
@ -56,6 +56,7 @@ func Teams(ctx *context.Context) {
|
|||
}
|
||||
}
|
||||
ctx.Data["Teams"] = ctx.Org.Teams
|
||||
ctx.Data["ContextUser"] = ctx.ContextUser
|
||||
|
||||
ctx.HTML(http.StatusOK, tplTeams)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue