diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go
index 6994aa334..63450ed88 100644
--- a/routers/repo/webhook.go
+++ b/routers/repo/webhook.go
@@ -25,7 +25,7 @@ import (
const (
tplHooks base.TplName = "repo/settings/webhook/base"
tplHookNew base.TplName = "repo/settings/webhook/new"
- tplOrgHookNew base.TplName = "org/settings/webhook/new"
+ tplOrgHookNew base.TplName = "org/settings/hook_new"
)
// Webhooks render web hooks list page
diff --git a/templates/org/settings/hook_new.tmpl b/templates/org/settings/hook_new.tmpl
index bedb2dc14..809009b66 100644
--- a/templates/org/settings/hook_new.tmpl
+++ b/templates/org/settings/hook_new.tmpl
@@ -23,14 +23,14 @@
- {{template "repo/settings/hook_gitea" .}}
- {{template "repo/settings/hook_gogs" .}}
- {{template "repo/settings/hook_slack" .}}
- {{template "repo/settings/hook_discord" .}}
- {{template "repo/settings/hook_dingtalk" .}}
+ {{template "repo/settings/webhook/gitea" .}}
+ {{template "repo/settings/webhook/gogs" .}}
+ {{template "repo/settings/webhook/slack" .}}
+ {{template "repo/settings/webhook/discord" .}}
+ {{template "repo/settings/webhook/dingtalk" .}}
- {{template "repo/settings/hook_history" .}}
+ {{template "repo/settings/webhook/history" .}}
diff --git a/templates/org/settings/hooks.tmpl b/templates/org/settings/hooks.tmpl
index 9052bf614..825b1e941 100644
--- a/templates/org/settings/hooks.tmpl
+++ b/templates/org/settings/hooks.tmpl
@@ -5,7 +5,7 @@
{{template "org/settings/navbar" .}}
- {{template "repo/settings/hook_list" .}}
+ {{template "repo/settings/webhook/list" .}}