Not all branches shown in branch pagination #7743

Closed
opened 2025-11-02 07:35:08 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @eNBeWe on GitHub (Aug 24, 2021).

Description

  • When I create 20 branches (in addition to the default branch), the branch page of the repository doesn't show the pagination bar
    and the last branch is not shown.
  • I can manually navigate to the second page by appending ?page=2 to the url and the branch is shown.
  • Similar, if I add 20 more branches, the pagination bar is missing the last (third) page

Screenshots

branch-view-01

branch-view-02

branch-view-03

Originally created by @eNBeWe on GitHub (Aug 24, 2021). - Gitea version (or commit ref): 1.15.0 - Git version: 2.25.1 - Operating system: - Provided binary - Systemd - Ubuntu 20.04.3 - No docker - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (https://try.gitea.io/arandomer/BranchPagination) - [ ] No - Log gist: ## Description * When I create 20 branches (in addition to the default branch), the branch page of the repository doesn't show the pagination bar and the last branch is not shown. * I can manually navigate to the second page by appending ?page=2 to the url and the branch is shown. * Similar, if I add 20 more branches, the pagination bar is missing the last (third) page ## Screenshots ![branch-view-01](https://user-images.githubusercontent.com/3796429/130600668-2b7a5663-3be3-450c-84f7-a9bb424e94f3.png) ![branch-view-02](https://user-images.githubusercontent.com/3796429/130600678-6c7a3745-364e-4aae-8d39-bec3be0dca19.png) ![branch-view-03](https://user-images.githubusercontent.com/3796429/130600696-0b4e59e7-d496-49f1-82fa-7292f486efb3.png)
GiteaMirror added the type/bug label 2025-11-02 07:35:09 -06:00
Author
Owner

@eNBeWe commented on GitHub (Aug 24, 2021):

If I push another branch, the next page is shown in the pagination bar. That means on the last page there need to be two branches to be shown.

@eNBeWe commented on GitHub (Aug 24, 2021): If I push another branch, the next page is shown in the pagination bar. That means on the last page there need to be two branches to be shown.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7743