aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org
diff options
context:
space:
mode:
authorKerwin Bryant <kerwin612@qq.com>2023-09-06 18:11:06 +0800
committerGitHub <noreply@github.com>2023-09-06 10:11:06 +0000
commit9b0743ae33e8342e00a7ad3a6ba8af81b4c7019e (patch)
tree9f810aa4870c9e44d6a5820ab64888ee2fbd20dd /templates/org
parent7812ce86dcd5aa31363915c00d3d9c934b9a7191 (diff)
downloadgitea-9b0743ae33e8342e00a7ad3a6ba8af81b4c7019e.tar.gz
gitea-9b0743ae33e8342e00a7ad3a6ba8af81b4c7019e.zip
Extract common code to new template (#26933)
Same as #26903
Diffstat (limited to 'templates/org')
-rw-r--r--templates/org/settings/hook_new.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/org/settings/hook_new.tmpl b/templates/org/settings/hook_new.tmpl
index d4343f8c68..ea477c9975 100644
--- a/templates/org/settings/hook_new.tmpl
+++ b/templates/org/settings/hook_new.tmpl
@@ -1,5 +1,7 @@
{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings new webhook")}}
<div class="org-setting-content">
- {{template "webhook/new" .}}
+ {{$CustomHeaderTitle := .locale.Tr "repo.settings.update_webhook"}}
+ {{if .PageIsSettingsHooksNew}}{{$CustomHeaderTitle = .locale.Tr "repo.settings.add_webhook"}}{{end}}
+ {{template "webhook/new" (dict "ctxData" . "CustomHeaderTitle" $CustomHeaderTitle)}}
</div>
{{template "org/settings/layout_footer" .}}