From 45a324b4379e5ab0415654dffb2301323f894d20 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 7 Feb 2017 23:38:24 +0800 Subject: [PATCH] fix releases count and resolved #764 (#857) --- routers/repo/release.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/release.go b/routers/repo/release.go index e63521dae9f3..47dba813a452 100644 --- a/routers/repo/release.go +++ b/routers/repo/release.go @@ -158,7 +158,7 @@ func Releases(ctx *context.Context) { } } - pager := paginater.New(ctx.Repo.Repository.NumTags, limit, page, 5) + pager := paginater.New(len(rawTags), limit, page, 5) ctx.Data["Page"] = pager ctx.Data["Releases"] = releaseTags ctx.HTML(200, tplReleases)