mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-08 01:34:08 +02: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
437 B
Handlebars
8 lines
437 B
Handlebars
{{template "repo/settings/layout_head" (dict "pageClass" "repository settings new webhook")}}
|
|
<div class="repo-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 "repo/settings/layout_footer" .}}
|