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