From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- templates/webhook/shared-settings.tmpl | 193 +++++++++++++++++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 templates/webhook/shared-settings.tmpl (limited to 'templates/webhook/shared-settings.tmpl') diff --git a/templates/webhook/shared-settings.tmpl b/templates/webhook/shared-settings.tmpl new file mode 100644 index 0000000..b6c05b7 --- /dev/null +++ b/templates/webhook/shared-settings.tmpl @@ -0,0 +1,193 @@ +{{$isNew:=or .PageIsSettingsHooksNew .PageIsAdminDefaultHooksNew .PageIsAdminSystemHooksNew}} +
+
+ {{ctx.Locale.Tr "repo.settings.event_desc"}} + + + +
+ +
+ {{ctx.Locale.Tr "repo.settings.event_header_repository"}} + + + + + + + + + + + + + + + + +
+ +
+ {{ctx.Locale.Tr "repo.settings.event_header_issue"}} + + + + + + + + + + +
+ +
+ {{ctx.Locale.Tr "repo.settings.event_header_pull_request"}} + + + + + + + + + + + + + + + + +
+
+
+
+ + +
+ + + {{ctx.Locale.Tr "repo.settings.branch_filter_desc" "https://pkg.go.dev/github.com/gobwas/glob#Compile" "github.com/gobwas/glob"}} +
+ +{{$skipAuthorizationHeader := or (eq .HookType "sourcehut_builds") (eq .HookType "matrix")}} +{{if not $skipAuthorizationHeader}} + +
+ + + {{ctx.Locale.Tr "repo.settings.authorization_header_desc" ("Bearer token123456, Basic YWxhZGRpbjpvcGVuc2VzYW1l" | SafeHTML)}} +
+{{end}} + +
+ +
+ + {{if $isNew}} + + {{else}} + + {{ctx.Locale.Tr "repo.settings.delete_webhook"}} + {{end}} +
+ +{{template "repo/settings/webhook/delete_modal" .}} -- cgit v1.2.3