Files
gitea/templates/webhook/new.tmpl
Copilot b093c2c43c refactor(templates): remove ctxData from tmpl files, use ctx.RootData instead (#37567)
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>
2026-05-06 18:21:48 +00:00

26 lines
1.2 KiB
Handlebars

<h4 class="ui top attached header">
{{.CustomHeaderTitle}}
<div class="ui right type dropdown">
<div class="text flex-text-inline">
{{template "shared/webhook/icon" (dict "Size" 20 "HookType" ctx.RootData.HookType)}}
{{ctx.Locale.Tr (print "repo.settings.web_hook_name_" ctx.RootData.HookType)}}
</div>
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{template "repo/settings/webhook/link_menu" ctx.RootData}}
</div>
</h4>
<div class="ui attached segment">
{{template "repo/settings/webhook/gitea" ctx.RootData}}
{{template "repo/settings/webhook/gogs" ctx.RootData}}
{{template "repo/settings/webhook/slack" ctx.RootData}}
{{template "repo/settings/webhook/discord" ctx.RootData}}
{{template "repo/settings/webhook/dingtalk" ctx.RootData}}
{{template "repo/settings/webhook/telegram" ctx.RootData}}
{{template "repo/settings/webhook/msteams" ctx.RootData}}
{{template "repo/settings/webhook/feishu" ctx.RootData}}
{{template "repo/settings/webhook/matrix" ctx.RootData}}
{{template "repo/settings/webhook/wechatwork" ctx.RootData}}
{{template "repo/settings/webhook/packagist" ctx.RootData}}
</div>
{{template "repo/settings/webhook/history" ctx.RootData}}