Extract common code to new template (#26933)

Same as #26903
This commit is contained in:
Kerwin Bryant authored and GitHub committed 2023-09-06 10:11:06 +00:00
1 parent 7812ce86dc
commit 9b0743ae33
5 files changed
+32 -46

No files matched your search

+3 -1
View File
@@ -1,5 +1,7 @@
{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings new webhook")}}
<div class="user-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 "user/settings/layout_footer" .}}