Skip to content

Commit

Permalink
fix releases count and resolved go-gitea#764 (go-gitea#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Feb 7, 2017
1 parent 02a881a commit 45a324b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/repo/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 45a324b

Please sign in to comment.