2023-07-31 03:00:52 -05:00
|
|
|
{{$size := 26}}
|
|
|
|
{{if .Size}}
|
|
|
|
{{$size = .Size}}
|
|
|
|
{{end}}
|
2023-01-14 04:07:01 -05:00
|
|
|
{{if eq .HookType "forgejo"}}
|
|
|
|
<img width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/forgejo.svg">
|
|
|
|
{{else if eq .HookType "gitea"}}
|
2024-02-15 08:59:48 -05:00
|
|
|
{{svg "gitea-gitea" $size "img"}}
|
2023-07-31 03:00:52 -05:00
|
|
|
{{else if eq .HookType "gogs"}}
|
|
|
|
<img width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/gogs.ico">
|
|
|
|
{{else if eq .HookType "slack"}}
|
|
|
|
<img width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/slack.png">
|
|
|
|
{{else if eq .HookType "discord"}}
|
|
|
|
<img width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/discord.png">
|
|
|
|
{{else if eq .HookType "dingtalk"}}
|
|
|
|
<img width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/dingtalk.ico">
|
|
|
|
{{else if eq .HookType "telegram"}}
|
|
|
|
<img width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/telegram.png">
|
|
|
|
{{else if eq .HookType "msteams"}}
|
|
|
|
<img width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/msteams.png">
|
|
|
|
{{else if eq .HookType "feishu"}}
|
|
|
|
<img width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/feishu.png">
|
|
|
|
{{else if eq .HookType "matrix"}}
|
|
|
|
{{svg "gitea-matrix" $size "img"}}
|
|
|
|
{{else if eq .HookType "wechatwork"}}
|
|
|
|
<img width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/wechatwork.png">
|
|
|
|
{{else if eq .HookType "packagist"}}
|
|
|
|
<img width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/packagist.png">
|
|
|
|
{{end}}
|