diff --git a/templates/org/settings/hook_new.tmpl b/templates/org/settings/hook_new.tmpl
index 4a1323568..d4343f8c6 100644
--- a/templates/org/settings/hook_new.tmpl
+++ b/templates/org/settings/hook_new.tmpl
@@ -1,26 +1,5 @@
{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings new webhook")}}
-
-
-
- {{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/webhook/telegram" .}}
- {{template "repo/settings/webhook/msteams" .}}
- {{template "repo/settings/webhook/feishu" .}}
- {{template "repo/settings/webhook/matrix" .}}
- {{template "repo/settings/webhook/wechatwork" .}}
- {{template "repo/settings/webhook/packagist" .}}
-
-
- {{template "repo/settings/webhook/history" .}}
-
-
+
-
-
- {{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/webhook/telegram" .}}
- {{template "repo/settings/webhook/msteams" .}}
- {{template "repo/settings/webhook/feishu" .}}
- {{template "repo/settings/webhook/matrix" .}}
- {{template "repo/settings/webhook/wechatwork" .}}
- {{template "repo/settings/webhook/packagist" .}}
-
-
- {{template "repo/settings/webhook/history" .}}
+ {{template "webhook/new" .}}
{{template "repo/settings/layout_footer" .}}
diff --git a/templates/user/settings/hook_new.tmpl b/templates/user/settings/hook_new.tmpl
index 83ae4801b..4d3ddf038 100644
--- a/templates/user/settings/hook_new.tmpl
+++ b/templates/user/settings/hook_new.tmpl
@@ -1,27 +1,5 @@
{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings new webhook")}}
-
-
-
- {{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/webhook/telegram" .}}
- {{template "repo/settings/webhook/msteams" .}}
- {{template "repo/settings/webhook/feishu" .}}
- {{template "repo/settings/webhook/matrix" .}}
- {{template "repo/settings/webhook/wechatwork" .}}
- {{template "repo/settings/webhook/packagist" .}}
-
-
- {{template "repo/settings/webhook/history" .}}
-
+ {{template "webhook/new" .}}
{{template "user/settings/layout_footer" .}}
diff --git a/templates/webhook/new.tmpl b/templates/webhook/new.tmpl
new file mode 100644
index 000000000..b5878fc93
--- /dev/null
+++ b/templates/webhook/new.tmpl
@@ -0,0 +1,20 @@
+
+
+ {{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/webhook/telegram" .}}
+ {{template "repo/settings/webhook/msteams" .}}
+ {{template "repo/settings/webhook/feishu" .}}
+ {{template "repo/settings/webhook/matrix" .}}
+ {{template "repo/settings/webhook/wechatwork" .}}
+ {{template "repo/settings/webhook/packagist" .}}
+
+{{template "repo/settings/webhook/history" .}}