Skip to content

Fix the display of org level badges #26504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 6, 2023
Merged

Conversation

yp05327
Copy link
Contributor

@yp05327 yp05327 commented Aug 15, 2023

Follow #24654 #22705 #24232

In some pages we still have missing badges, for example:
image
image
image

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 15, 2023
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't there quite a few more manual instances?

routers/web/user/code.go
33:     ctx.Data["ContextUser"] = ctx.ContextUser

routers/web/user/home.go
59:     ctx.Data["ContextUser"] = ctxUser

routers/web/user/setting/profile.go
334:    ctx.Data["ContextUser"] = ctxUser

routers/web/repo/migrate.go
67:     ctx.Data["ContextUser"] = ctxUser
169:    ctx.Data["ContextUser"] = ctxUser

routers/web/repo/repo.go
166:    ctx.Data["ContextUser"] = ctxUser
233:    ctx.Data["ContextUser"] = ctxUser

routers/web/repo/pull.go
174:            ctx.Data["ContextUser"] = ctx.Doer
176:            ctx.Data["ContextUser"] = orgs[0]
222:    ctx.Data["ContextUser"] = ctxUser

routers/web/repo/packages.go
61:     ctx.Data["ContextUser"] = ctx.ContextUser

routers/web/shared/user/header.go
25:     ctx.Data["ContextUser"] = ctx.ContextUser

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the list you given is related to userAssignment
maybe we should also need this in userAssignment 🤔

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 30, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Sep 6, 2023
@lunny lunny added this to the 1.21.0 milestone Sep 6, 2023
@lunny lunny added topic/ui Change the appearance of the Gitea UI reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. labels Sep 6, 2023
@lunny lunny merged commit 0850be6 into go-gitea:main Sep 6, 2023
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 6, 2023
@yp05327 yp05327 deleted the fix-org-level-badges branch September 6, 2023 07:17
zjjhot added a commit to zjjhot/gitea that referenced this pull request Sep 7, 2023
* giteaofficial/main:
  Fix schedule actions still running even if workflow disalbed (go-gitea#26939)
  Fix the missing repo count (go-gitea#26942)
  Improve SSH Key / GPG Key / Deploy Key UI (go-gitea#26949)
  [skip ci] Updated translations via Crowdin
  Update nginx recommendations (go-gitea#26924)
  docs: Update Profile README information (go-gitea#26947)
  Fix scoped label layout (go-gitea#26932)
  Move createrepository from module to service layer (go-gitea#26927)
  Add a documentation note for Windows Service (go-gitea#26938)
  allow "latest" to be used in release vTag when downloading file (go-gitea#26748)
  Extract common code to new template (go-gitea#26933)
  Show always repo count in header (go-gitea#26842)
  Show always repo count in header (go-gitea#26842)
  Artifacts retention and auto clean up (go-gitea#26131)
  Fix UI anomalies (go-gitea#26929)
  Fix the display of org level badges  (go-gitea#26504)
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants