summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/repo/release.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go
index 4308b07416..70a310cc13 100644
--- a/routers/repo/release.go
+++ b/routers/repo/release.go
@@ -107,7 +107,7 @@ func Releases(ctx *context.Context) {
releasesToDisplay = append(releasesToDisplay, r)
}
- pager := paginater.New(len(releases), limit, page, 5)
+ pager := paginater.New(len(releasesToDisplay), limit, page, 5)
ctx.Data["Page"] = pager
ctx.Data["Releases"] = releasesToDisplay
ctx.HTML(200, tplReleases)