summaryrefslogtreecommitdiffstats
path: root/routers/repo/release.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/release.go')
-rw-r--r--routers/repo/release.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go
index c2e5aabf8f..01ed3c37a1 100644
--- a/routers/repo/release.go
+++ b/routers/repo/release.go
@@ -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