Skip to content

Commit

Permalink
use svg tag for svg
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Feb 11, 2024
1 parent a6b2f4e commit 0898a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/shared/webhook/icon.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{$size = .Size}}
{{end}}
{{if eq .HookType "gitea"}}
<img class="{{.Class}}" width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/gitea.svg">
{{svg "gitea-gitea" $size "img"}}
{{else if eq .HookType "gogs"}}
<img class="{{.Class}}" width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/gogs.ico">
{{else if eq .HookType "slack"}}
Expand All @@ -19,7 +19,7 @@
{{else if eq .HookType "feishu"}}
<img class="{{.Class}}" width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/feishu.png">
{{else if eq .HookType "matrix"}}
<img class="{{.Class}}" width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/svg/gitea-matrix.svg">
{{svg "gitea-matrix" $size "img"}}
{{else if eq .HookType "wechatwork"}}
<img class="{{.Class}}" width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/wechatwork.png">
{{else if eq .HookType "packagist"}}
Expand Down

0 comments on commit 0898a7e

Please sign in to comment.