Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.3k
Only use prev and next buttons for pagination on user dashboard#33981
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Only use prev and next buttons for pagination on user dashboard#33981
Uh oh!
There was an error while loading.Please reload this page.
Conversation
wxiaoguang left a comment
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.
Why a new unnecessary config option and why keep copying-pasting the code , and whymath.MaxInt32
wxiaoguang commentedMar 23, 2025
It should make a "Paginator" like this: Pages=nil, HasPrev=true, HasNext=true |
lunny commentedMar 23, 2025
Did you mean reuse the original template? Then we still need to handle |
Uh oh!
There was an error while loading.Please reload this page.
e2f13c0 to19d11c3Compare19d11c3 to69aa478Comparelunny commentedMar 23, 2025
wxiaoguang commentedMar 23, 2025
I believe yes. Otherwise, how could a user know which page they are viewing? |
wxiaoguang commentedMar 23, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
f10dd0b to9271280Compare9271280 to1f790ecCompare30ee082 intogo-gitea:mainUh oh!
There was an error while loading.Please reload this page.
* giteaofficial/main: [skip ci] Updated translations via Crowdin Only use prev and next buttons for pagination on user dashboard (go-gitea#33981) update jwt and redis packages (go-gitea#33984) [skip ci] Updated translations via Crowdin Improve oauth2 error handling (go-gitea#33969) [skip ci] Updated translations via Crowdin Cover `go.mod` and `go.sum` in `.editorconfig` (go-gitea#33960) Drop timeout for requests made to the internal hook api (go-gitea#33947) Fix file name could not be searched if the file was not a text file when using the Bleve indexer (go-gitea#33959) Fix oauth2 auth and UI (go-gitea#33961) Allow filtering issues by any assignee (go-gitea#33343) Optimize total count of feed when loading activities in user dashboard. (go-gitea#33841) Extract code to their own functions for push update (go-gitea#33944) Optimize heatmap query (go-gitea#33853)




Uh oh!
There was an error while loading.Please reload this page.
The pagination on the user dashboard sounds unnecessary, this will change it to a prev/next buttons. For instances with around
10 millionrecords in the action table, this option affects how the user dashboard is loaded on first visit.Before:
After: