|
|
@ -169,7 +169,7 @@ func NewRelease(ctx *context.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("repo.release.new_release") |
|
|
|
ctx.Data["Title"] = ctx.Tr("repo.release.new_release") |
|
|
|
ctx.Data["PageIsReleaseList"] = true |
|
|
|
ctx.Data["PageIsReleaseList"] = true |
|
|
|
ctx.Data["tag_target"] = ctx.Repo.Repository.DefaultBranch |
|
|
|
ctx.Data["tag_target"] = ctx.Repo.Repository.DefaultBranch |
|
|
|
renderAttachmentSettings(ctx); |
|
|
|
renderAttachmentSettings(ctx) |
|
|
|
ctx.HTML(200, tplReleaseNew) |
|
|
|
ctx.HTML(200, tplReleaseNew) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -250,7 +250,7 @@ func EditRelease(ctx *context.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("repo.release.edit_release") |
|
|
|
ctx.Data["Title"] = ctx.Tr("repo.release.edit_release") |
|
|
|
ctx.Data["PageIsReleaseList"] = true |
|
|
|
ctx.Data["PageIsReleaseList"] = true |
|
|
|
ctx.Data["PageIsEditRelease"] = true |
|
|
|
ctx.Data["PageIsEditRelease"] = true |
|
|
|
renderAttachmentSettings(ctx); |
|
|
|
renderAttachmentSettings(ctx) |
|
|
|
|
|
|
|
|
|
|
|
tagName := ctx.Params("*") |
|
|
|
tagName := ctx.Params("*") |
|
|
|
rel, err := models.GetRelease(ctx.Repo.Repository.ID, tagName) |
|
|
|
rel, err := models.GetRelease(ctx.Repo.Repository.ID, tagName) |
|
|
|