diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-07 23:38:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-07 23:38:24 +0800 |
commit | 45a324b4379e5ab0415654dffb2301323f894d20 (patch) | |
tree | 57f03469d9c8e952e512155945ab1a97918719dd /routers/repo/release.go | |
parent | 02a881aa32b3b5bbf05e9a75f0061b6c892fb671 (diff) | |
download | gitea-45a324b4379e5ab0415654dffb2301323f894d20.tar.gz gitea-45a324b4379e5ab0415654dffb2301323f894d20.zip |
fix releases count and resolved #764 (#857)
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 e63521dae9..47dba813a4 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) |