-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Show always repo count in header #26842
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is one approach to tackle this problem.
Another would be adding a middleware for these routes.
@JakobDev please fix the merge conflicts. 🍵 |
I want to load this only when it's really needed. Sometimes it only needs to load Org pages but not for User pages. |
A few pages don't load the repo count of an user/org, so it is not shown in the header. This happens mostly on org pages, but the package settings applies to the user page as well. Before: ![Screenshot 2023-08-31 at 12-45-36 Gitea Git with a cup of tea](https://github.com/go-gitea/gitea/assets/15185051/14a59998-2cf9-4771-82f4-5d1d6fcb31f4) After: ![grafik](https://github.com/go-gitea/gitea/assets/15185051/ff055aa0-7cde-49be-9522-437bf970be1d) Seen on go-gitea#26826 Regression of go-gitea#25928
* 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)
A few pages don't load the repo count of an user/org, so it is not shown in the header. This happens mostly on org pages, but the package settings applies to the user page as well.
Before:
![Screenshot 2023-08-31 at 12-45-36 Gitea Git with a cup of tea](https://private-user-images.githubusercontent.com/15185051/264646673-14a59998-2cf9-4771-82f4-5d1d6fcb31f4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MDg5OTAsIm5iZiI6MTczODgwODY5MCwicGF0aCI6Ii8xNTE4NTA1MS8yNjQ2NDY2NzMtMTRhNTk5OTgtMmNmOS00NzcxLTgyZjQtNWQxZDZmY2IzMWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDAyMjQ1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIyOGZkMDUxMjU2M2U5YzQ1M2YxZGFhMTBjNTE1NmM0YWM3MjFiOGU3ZGM5NWE2YjIwMWRmZmM0MTdiY2Q0MWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lfnxQL0abGZLrzSM0f8hAQdJNtoPsgel0RlaxrlZvj8)
After:
![grafik](https://private-user-images.githubusercontent.com/15185051/264647005-ff055aa0-7cde-49be-9522-437bf970be1d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MDg5OTAsIm5iZiI6MTczODgwODY5MCwicGF0aCI6Ii8xNTE4NTA1MS8yNjQ2NDcwMDUtZmYwNTVhYTAtN2NkZS00OWJlLTk1MjItNDM3YmY5NzBiZTFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDAyMjQ1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2NDNiNzA5ZmVhZTU4Mjk1OTJkOWMwMzkzYThjZDMwYmY3NDNiODg0YTY3M2NjOWYyYTM5YThjYzM0YzM0NDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HxvxIfVRb0mC6a28VDrV9klZFdhRYRdGL9Uyqh8BULU)
Seen on #26826
Regression of #25928