mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-19 03:21:05 +00:00
Sub-templates have direct access to `ctx.RootData` (the root data map), so there is no need for callers to explicitly pass it as `ctxData` via `dict`. Also fix #37569 by the way --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wxiaoguang <2114189+wxiaoguang@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
8 lines
431 B
Handlebars
8 lines
431 B
Handlebars
{{template "user/settings/layout_head" (dict "pageClass" "user settings new webhook")}}
|
|
<div class="user-setting-content">
|
|
{{$CustomHeaderTitle := ctx.Locale.Tr "repo.settings.update_webhook"}}
|
|
{{if .PageIsSettingsHooksNew}}{{$CustomHeaderTitle = ctx.Locale.Tr "repo.settings.add_webhook"}}{{end}}
|
|
{{template "webhook/new" (dict "CustomHeaderTitle" $CustomHeaderTitle)}}
|
|
</div>
|
|
{{template "user/settings/layout_footer" .}}
|