bug fix release

This commit is contained in:
Lunny Xiao 2017-01-09 23:51:21 +08:00 committed by Kim "BKC" Carlbäcker
parent b316b2e740
commit 7209917fd7
5 changed files with 14 additions and 9 deletions

View file

@ -71,6 +71,11 @@ func Releases(ctx *context.Context) {
return
}
if len(rawTags) == 0 {
ctx.HTML(200, tplReleases)
return
}
if len(rawTags) <= (page-1)*limit {
ctx.Handle(500, "Releases", errors.New("no more pages"))
return