diff options
author | Sandro Santilli <strk@kbt.io> | 2016-11-14 17:30:22 +0100 |
---|---|---|
committer | Sandro Santilli <strk@kbt.io> | 2016-11-14 18:02:21 +0100 |
commit | cd339263d91ee9fc2ae9d52d17ae7f82e3dac839 (patch) | |
tree | a36f81de27d069a2960f7f0d74d317d584055995 /routers/repo | |
parent | 81f227eace297269381d80b77ec0e470c5e7902d (diff) | |
download | gitea-cd339263d91ee9fc2ae9d52d17ae7f82e3dac839.tar.gz gitea-cd339263d91ee9fc2ae9d52d17ae7f82e3dac839.zip |
Allow updating draft releases while keeping them as draft
Closes #162
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/release.go | 1 |
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) } |