Repo paging in dashboard shows too many pages with 30 repos #7239

Closed
opened 2025-11-02 07:20:36 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @fnetX on GitHub (Apr 23, 2021).

  • Gitea version (or commit ref): 1.13 (Codeberg), 1.15 (try.gitea.io)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:

Description

The paging of repos is broken in the user dashboard with (n)*15 repos, n >= 2.
So with 15 repos, there is no paging yet, but with exactly 30 repos, you can click to the second page, and it also offers you to navigate to the third page (repos 31 - 45) - but it is just empty because there are no more repos to show.
I assume that this also happens with 45, 60, 75, 90 repos etc.

Feel free to join the 30repos org on try.gitea.io, I assume the maintainers have admin accounts on the instance.

Screenshots

screenshot, second page still offers a button to the right

Originally created by @fnetX on GitHub (Apr 23, 2021). - Gitea version (or commit ref): 1.13 (Codeberg), 1.15 (try.gitea.io) - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes https://try.gitea.io/30repos (feel free to join this org as admin) ## Description The paging of repos is broken in the user dashboard with (n)*15 repos, n >= 2. So with 15 repos, there is no paging yet, but with exactly 30 repos, you can click to the second page, and it also offers you to navigate to the third page (repos 31 - 45) - but it is just empty because there are no more repos to show. I assume that this also happens with 45, 60, 75, 90 repos etc. Feel free to join the 30repos org on try.gitea.io, I assume the maintainers have admin accounts on the instance. ## Screenshots ![screenshot, second page still offers a button to the right](https://user-images.githubusercontent.com/19634137/115876884-22e50600-a447-11eb-8521-9451307155ed.png)
GiteaMirror added the topic/uigood first issue labels 2025-11-02 07:20:36 -06:00
Author
Owner

@fnetX commented on GitHub (Apr 23, 2021):

Since this is just a minor thing, it's probably a good first issue? Won't find the time to look at the code the coming weeks though ...

@fnetX commented on GitHub (Apr 23, 2021): Since this is just a minor thing, it's probably a good first issue? Won't find the time to look at the code the coming weeks though ...
Author
Owner

@jannaahs commented on GitHub (Jul 3, 2021):

Hi, I would like to work on it. Is it ok?

@jannaahs commented on GitHub (Jul 3, 2021): Hi, I would like to work on it. Is it ok?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7239