mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-21 13:38:00 +02:00
Fix incorrect release count (#25879)
Release count is not correct:
https://try.gitea.io/yp05327/testrepo/tags

https://try.gitea.io/yp05327/testrepo/releases

https://try.gitea.io/yp05327/testrepo/releases/tag/testtag

We already have correct release count, no need to calculate it again.
c5e187c389/modules/context/repo.go (L547)
Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
@ -196,7 +196,6 @@ func releasesOrTags(ctx *context.Context, isTagList bool) {
|
||||
}
|
||||
|
||||
ctx.Data["Releases"] = releases
|
||||
ctx.Data["ReleasesNum"] = len(releases)
|
||||
|
||||
pager := context.NewPagination(int(count), opts.PageSize, opts.Page, 5)
|
||||
pager.SetDefaultParams(ctx)
|
||||
|
Reference in New Issue
Block a user