|
5 | 5 | <div class="ui primary tiny button">{{.locale.Tr "repo.settings.add_webhook"}}</div>
|
6 | 6 | <div class="menu">
|
7 | 7 | <a class="item" href="{{.BaseLinkNew}}/gitea/new">
|
8 |
| - <img width="20" height="20" src="{{AssetUrlPrefix}}/img/gitea.svg">{{.locale.Tr "repo.settings.web_hook_name_gitea"}} |
| 8 | + {{template "shared/webhook/icon" (dict "HookType" "gitea" "Size" 20)}} |
| 9 | + {{.locale.Tr "repo.settings.web_hook_name_gitea"}} |
9 | 10 | </a>
|
10 | 11 | <a class="item" href="{{.BaseLinkNew}}/gogs/new">
|
11 |
| - <img width="20" height="20" src="{{AssetUrlPrefix}}/img/gogs.ico">{{.locale.Tr "repo.settings.web_hook_name_gogs"}} |
| 12 | + {{template "shared/webhook/icon" (dict "HookType" "gogs" "Size" 20)}} |
| 13 | + {{.locale.Tr "repo.settings.web_hook_name_gogs"}} |
12 | 14 | </a>
|
13 | 15 | <a class="item" href="{{.BaseLinkNew}}/slack/new">
|
14 |
| - <img width="20" height="20" src="{{AssetUrlPrefix}}/img/slack.png">{{.locale.Tr "repo.settings.web_hook_name_slack"}} |
| 16 | + {{template "shared/webhook/icon" (dict "HookType" "slack" "Size" 20)}} |
| 17 | + {{.locale.Tr "repo.settings.web_hook_name_slack"}} |
15 | 18 | </a>
|
16 | 19 | <a class="item" href="{{.BaseLinkNew}}/discord/new">
|
17 |
| - <img width="20" height="20" src="{{AssetUrlPrefix}}/img/discord.png">{{.locale.Tr "repo.settings.web_hook_name_discord"}} |
| 20 | + {{template "shared/webhook/icon" (dict "HookType" "discord" "Size" 20)}} |
| 21 | + {{.locale.Tr "repo.settings.web_hook_name_discord"}} |
18 | 22 | </a>
|
19 | 23 | <a class="item" href="{{.BaseLinkNew}}/dingtalk/new">
|
20 |
| - <img width="20" height="20" src="{{AssetUrlPrefix}}/img/dingtalk.ico">{{.locale.Tr "repo.settings.web_hook_name_dingtalk"}} |
| 24 | + {{template "shared/webhook/icon" (dict "HookType" "dingtalk" "Size" 20)}} |
| 25 | + {{.locale.Tr "repo.settings.web_hook_name_dingtalk"}} |
21 | 26 | </a>
|
22 | 27 | <a class="item" href="{{.BaseLinkNew}}/telegram/new">
|
23 |
| - <img width="20" height="20" src="{{AssetUrlPrefix}}/img/telegram.png">{{.locale.Tr "repo.settings.web_hook_name_telegram"}} |
| 28 | + {{template "shared/webhook/icon" (dict "HookType" "telegram" "Size" 20)}} |
| 29 | + {{.locale.Tr "repo.settings.web_hook_name_telegram"}} |
24 | 30 | </a>
|
25 | 31 | <a class="item" href="{{.BaseLinkNew}}/msteams/new">
|
26 |
| - <img width="20" height="20" src="{{AssetUrlPrefix}}/img/msteams.png">{{.locale.Tr "repo.settings.web_hook_name_msteams"}} |
| 32 | + {{template "shared/webhook/icon" (dict "HookType" "msteams" "Size" 20)}} |
| 33 | + {{.locale.Tr "repo.settings.web_hook_name_msteams"}} |
27 | 34 | </a>
|
28 | 35 | <a class="item" href="{{.BaseLinkNew}}/feishu/new">
|
29 |
| - <img width="20" height="20" src="{{AssetUrlPrefix}}/img/feishu.png">{{.locale.Tr "repo.settings.web_hook_name_feishu_or_larksuite"}} |
| 36 | + {{template "shared/webhook/icon" (dict "HookType" "feishu" "Size" 20)}} |
| 37 | + {{.locale.Tr "repo.settings.web_hook_name_feishu_or_larksuite"}} |
30 | 38 | </a>
|
31 | 39 | <a class="item" href="{{.BaseLinkNew}}/matrix/new">
|
32 |
| - {{svg "gitea-matrix" 20 "img"}}{{.locale.Tr "repo.settings.web_hook_name_matrix"}} |
| 40 | + {{template "shared/webhook/icon" (dict "HookType" "matrix" "Size" 20)}} |
| 41 | + {{.locale.Tr "repo.settings.web_hook_name_matrix"}} |
33 | 42 | </a>
|
34 | 43 | <a class="item" href="{{.BaseLinkNew}}/wechatwork/new">
|
35 |
| - <img width="20" height="20" src="{{AssetUrlPrefix}}/img/wechatwork.png">{{.locale.Tr "repo.settings.web_hook_name_wechatwork"}} |
| 44 | + {{template "shared/webhook/icon" (dict "HookType" "wechatwork" "Size" 20)}} |
| 45 | + {{.locale.Tr "repo.settings.web_hook_name_wechatwork"}} |
36 | 46 | </a>
|
37 | 47 | <a class="item" href="{{.BaseLinkNew}}/packagist/new">
|
38 |
| - <img width="20" height="20" src="{{AssetUrlPrefix}}/img/packagist.png">{{.locale.Tr "repo.settings.web_hook_name_packagist"}} |
| 48 | + {{template "shared/webhook/icon" (dict "HookType" "packagist" "Size" 20)}} |
| 49 | + {{.locale.Tr "repo.settings.web_hook_name_packagist"}} |
39 | 50 | </a>
|
40 | 51 | </div>
|
41 | 52 | </div>
|
|
0 commit comments