mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Allow custom public files (#782)
* Allow custom public files * Gofmt code, lots of places not related to this pr
This commit is contained in:
@@ -12,13 +12,13 @@ import (
|
||||
"code.gitea.io/gitea/models"
|
||||
"code.gitea.io/gitea/modules/cron"
|
||||
"code.gitea.io/gitea/modules/highlight"
|
||||
"code.gitea.io/gitea/modules/indexer"
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"code.gitea.io/gitea/modules/mailer"
|
||||
"code.gitea.io/gitea/modules/markdown"
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
"code.gitea.io/gitea/modules/ssh"
|
||||
macaron "gopkg.in/macaron.v1"
|
||||
"code.gitea.io/gitea/modules/indexer"
|
||||
)
|
||||
|
||||
func checkRunMode() {
|
||||
|
@@ -70,4 +70,3 @@ func UploadAttachment(ctx *context.Context) {
|
||||
"uuid": attach.UUID,
|
||||
})
|
||||
}
|
||||
|
||||
|
@@ -169,7 +169,7 @@ func NewRelease(ctx *context.Context) {
|
||||
ctx.Data["Title"] = ctx.Tr("repo.release.new_release")
|
||||
ctx.Data["PageIsReleaseList"] = true
|
||||
ctx.Data["tag_target"] = ctx.Repo.Repository.DefaultBranch
|
||||
renderAttachmentSettings(ctx);
|
||||
renderAttachmentSettings(ctx)
|
||||
ctx.HTML(200, tplReleaseNew)
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ func EditRelease(ctx *context.Context) {
|
||||
ctx.Data["Title"] = ctx.Tr("repo.release.edit_release")
|
||||
ctx.Data["PageIsReleaseList"] = true
|
||||
ctx.Data["PageIsEditRelease"] = true
|
||||
renderAttachmentSettings(ctx);
|
||||
renderAttachmentSettings(ctx)
|
||||
|
||||
tagName := ctx.Params("*")
|
||||
rel, err := models.GetRelease(ctx.Repo.Repository.ID, tagName)
|
||||
|
Reference in New Issue
Block a user