mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 22:54:24 +00:00
374e886f51
It's now possible to change webhook-type in create-view. before: ![image](https://github.com/go-gitea/gitea/assets/72873130/9ee1b9fb-843b-4f28-b8d6-6361e5d184f1) after: ![image](https://github.com/go-gitea/gitea/assets/72873130/9dbf058f-5912-43af-9acd-487271212f2d) --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
28 lines
1.2 KiB
Handlebars
28 lines
1.2 KiB
Handlebars
{{$size := 26}}
|
|
{{if .Size}}
|
|
{{$size = .Size}}
|
|
{{end}}
|
|
{{if eq .HookType "gitea"}}
|
|
{{svg "gitea-gitea" $size "img"}}
|
|
{{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}}
|