diff options
author | Kerwin Bryant <kerwin612@qq.com> | 2023-09-06 18:11:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 10:11:06 +0000 |
commit | 9b0743ae33e8342e00a7ad3a6ba8af81b4c7019e (patch) | |
tree | 9f810aa4870c9e44d6a5820ab64888ee2fbd20dd /templates/org | |
parent | 7812ce86dcd5aa31363915c00d3d9c934b9a7191 (diff) | |
download | gitea-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.tmpl | 4 |
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" .}} |