mirror of
https://github.com/go-gitea/gitea
synced 2025-08-12 20:48:20 +00:00
Merge default and system webhooks under one menu (#14244)
This commit is contained in:
@@ -4,10 +4,14 @@
|
||||
<div class="ui container">
|
||||
{{template "base/alert" .}}
|
||||
<h4 class="ui top attached header">
|
||||
{{if .PageIsAdminHooksNew}}
|
||||
{{.i18n.Tr "admin.hooks.add_webhook"}}
|
||||
{{if .PageIsAdminDefaultHooksNew}}
|
||||
{{.i18n.Tr "admin.defaulthooks.add_webhook"}}
|
||||
{{else if .PageIsAdminSystemHooksNew}}
|
||||
{{.i18n.Tr "admin.systemhooks.add_webhook"}}
|
||||
{{else if .Webhook.IsSystemWebhook}}
|
||||
{{.i18n.Tr "admin.systemhooks.update_webhook"}}
|
||||
{{else}}
|
||||
{{.i18n.Tr "admin.hooks.update_webhook"}}
|
||||
{{.i18n.Tr "admin.defaulthooks.update_webhook"}}
|
||||
{{end}}
|
||||
<div class="ui right">
|
||||
{{if eq .HookType "gitea"}}
|
||||
|
Reference in New Issue
Block a user