Browse Source

fix releases count and resolved #764 (#857)

for-closed-social
Lunny Xiao 7 years ago
committed by GitHub
parent
commit
45a324b437
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/release.go

+ 1
- 1
routers/repo/release.go 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["Releases"] = releaseTags
ctx.HTML(200, tplReleases)

Loading…
Cancel
Save