diff --git a/routers/web/repo/release.go b/routers/web/repo/release.go index 0b927a3a2fa03..8dc78079e21cf 100644 --- a/routers/web/repo/release.go +++ b/routers/web/repo/release.go @@ -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) diff --git a/templates/repo/release_tag_header.tmpl b/templates/repo/release_tag_header.tmpl index 7129e4235f5bc..3f6f9aac310a9 100644 --- a/templates/repo/release_tag_header.tmpl +++ b/templates/repo/release_tag_header.tmpl @@ -5,7 +5,7 @@