summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2017-01-28 23:14:56 +0100
committerGitHub <noreply@github.com>2017-01-28 23:14:56 +0100
commit78535fb08ebe667f27da6b44a9af52aae1148434 (patch)
treefa4f539811b8e66ae7aa7f177702180642844bc3 /routers
parentcc31a21192cba31cc2ede74b44f1c4e19621d4f7 (diff)
downloadgitea-78535fb08ebe667f27da6b44a9af52aae1148434.tar.gz
gitea-78535fb08ebe667f27da6b44a9af52aae1148434.zip
Allow custom public files (#782)
* Allow custom public files * Gofmt code, lots of places not related to this pr
Diffstat (limited to 'routers')
-rw-r--r--routers/init.go2
-rw-r--r--routers/repo/attachment.go1
-rw-r--r--routers/repo/release.go4
3 files changed, 3 insertions, 4 deletions
diff --git a/routers/init.go b/routers/init.go
index 23bf7ae628..048ded15fe 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -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() {
diff --git a/routers/repo/attachment.go b/routers/repo/attachment.go
index 2ba389f07a..c2efb11c1d 100644
--- a/routers/repo/attachment.go
+++ b/routers/repo/attachment.go
@@ -70,4 +70,3 @@ func UploadAttachment(ctx *context.Context) {
"uuid": attach.UUID,
})
}
-
diff --git a/routers/repo/release.go b/routers/repo/release.go
index 3e0fc94e4e..e63521dae9 100644
--- a/routers/repo/release.go
+++ b/routers/repo/release.go
@@ -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)