Files
forge/templates/shared/webhook/icon.tmpl
zeekayandHanzo Dev b695556e53 Name the native webhook type native everywhere it is spelled
The POST routes and the stored type column already said native, but the
webhook menu, form and enabled-types list still said gitea, so the form
posted to a path no route served and creating a native webhook from the web
UI answered 404. Route, template, locale key and API enum now all say native,
which is also what distinguishes our own payload shape from slack or matrix.
No stored value changes, so no migration.

Regenerating the API spec also picks up the owners/*/packages paths, the
pull-mirror endpoint and a profile-page description that the committed spec
had drifted behind.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-10 18:09:48 -07:00

28 lines
1.2 KiB
Handlebars

{{$size := 26}}
{{if .Size}}
{{$size = .Size}}
{{end}}
{{if eq .HookType "native"}}
{{svg "hanzo-hanzo" $size "img"}}
{{else if eq .HookType "gogs"}}
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/gogs.png">
{{else if eq .HookType "slack"}}
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/slack.png">
{{else if eq .HookType "discord"}}
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/discord.png">
{{else if eq .HookType "dingtalk"}}
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/dingtalk.ico">
{{else if eq .HookType "telegram"}}
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/telegram.png">
{{else if eq .HookType "msteams"}}
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/msteams.png">
{{else if eq .HookType "feishu"}}
{{svg "hanzo-feishu" $size "img"}}
{{else if eq .HookType "matrix"}}
{{svg "hanzo-matrix" $size "img"}}
{{else if eq .HookType "wechatwork"}}
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/wechatwork.png">
{{else if eq .HookType "packagist"}}
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/packagist.png">
{{end}}