mirror of
https://github.com/LAX18/gitea.git
synced 2026-06-03 14:07:55 -09: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. https://github.com/go-gitea/gitea/blob/c5e187c389b35b9e080a3187b93a775a3c81e585/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