diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-06-03 23:07:20 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-04 11:07:20 +0800 |
commit | 817a405118fb97f2500265405e109e8a4cd3f8c2 (patch) | |
tree | 57fe88c2fe59d1ab89009aae96aac4227e26e090 /routers/repo/release.go | |
parent | a97d6bf24ba8a0e43137e3fdf96b6170f16566eb (diff) | |
download | gitea-817a405118fb97f2500265405e109e8a4cd3f8c2.tar.gz gitea-817a405118fb97f2500265405e109e8a4cd3f8c2.zip |
Fix paginater length (#1866)
Diffstat (limited to 'routers/repo/release.go')
-rw-r--r-- | routers/repo/release.go | 2 |
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) |