Allow updating draft releases while keeping them as draft

Closes #162
This commit is contained in:
Sandro Santilli committed 2016-11-14 18:02:21 +01:00
1 parent 81f227eace
commit cd339263d9
2 files changed
+11 -3

No files matched your search

+1
View File
@@ -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)
}