diff options
author | Sandro Santilli <strk@kbt.io> | 2016-11-07 17:08:21 +0100 |
---|---|---|
committer | Sandro Santilli <strk@kbt.io> | 2016-11-07 17:08:21 +0100 |
commit | 0b62aeb495c9c1daf816a754a0e4abbf8c62c2c0 (patch) | |
tree | 7ec5e31249bca75a1a288c7b6ac2e4d2a10a1f79 /routers/repo/webhook.go | |
parent | 80eea77953ab5f1f12e1a01f1930b72c360a5c76 (diff) | |
download | gitea-0b62aeb495c9c1daf816a754a0e4abbf8c62c2c0.tar.gz gitea-0b62aeb495c9c1daf816a754a0e4abbf8c62c2c0.zip |
More MixedCase consts
Diffstat (limited to 'routers/repo/webhook.go')
-rw-r--r-- | routers/repo/webhook.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index c9d15bef08..918c34016f 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -24,8 +24,8 @@ import ( const ( HOOKS base.TplName = "repo/settings/hooks" - HOOK_NEW base.TplName = "repo/settings/hook_new" - ORG_HOOK_NEW base.TplName = "org/settings/hook_new" + HookNew base.TplName = "repo/settings/hook_new" + ORG_HookNew base.TplName = "org/settings/hook_new" ) func Webhooks(ctx *context.Context) { @@ -57,7 +57,7 @@ func getOrgRepoCtx(ctx *context.Context) (*OrgRepoCtx, error) { return &OrgRepoCtx{ RepoID: ctx.Repo.Repository.ID, Link: ctx.Repo.RepoLink, - NewTemplate: HOOK_NEW, + NewTemplate: HookNew, }, nil } @@ -65,7 +65,7 @@ func getOrgRepoCtx(ctx *context.Context) (*OrgRepoCtx, error) { return &OrgRepoCtx{ OrgID: ctx.Org.Organization.ID, Link: ctx.Org.OrgLink, - NewTemplate: ORG_HOOK_NEW, + NewTemplate: ORG_HookNew, }, nil } |