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.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go
index 3c49663830..187952c2e6 100644
--- a/routers/repo/release.go
+++ b/routers/repo/release.go
@@ -247,6 +247,7 @@ func EditRelease(ctx *context.Context) {
ctx.Data["title"] = rel.Title
ctx.Data["content"] = rel.Note
ctx.Data["prerelease"] = rel.IsPrerelease
+ ctx.Data["IsDraft"] = rel.IsDraft
ctx.HTML(200, RELEASE_NEW)
}