1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

fix releases count and resolved #764 (#857)

This commit is contained in:
Lunny Xiao 2017-02-07 23:38:24 +08:00 committed by GitHub
parent 02a881aa32
commit 45a324b437

View file

@ -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["Page"] = pager
ctx.Data["Releases"] = releaseTags ctx.Data["Releases"] = releaseTags
ctx.HTML(200, tplReleases) ctx.HTML(200, tplReleases)