|
1 | 1 | {{template "base/head" .}}
|
2 | 2 | <div class="page-content organization settings new webhook">
|
3 | 3 | {{template "org/header" .}}
|
| 4 | + {{template "org/settings/navbar" .}} |
4 | 5 | <div class="ui container">
|
5 |
| - <div class="ui grid"> |
6 |
| - {{template "org/settings/navbar" .}} |
7 |
| - <div class="twelve wide column content"> |
8 |
| - {{template "base/alert" .}} |
9 |
| - <h4 class="ui top attached header"> |
10 |
| - {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}} |
11 |
| - <div class="ui right"> |
12 |
| - {{if eq .HookType "gitea"}} |
13 |
| - <img width="26" height="26" src="{{StaticUrlPrefix}}/img/gitea.svg"> |
14 |
| - {{else if eq .HookType "gogs"}} |
15 |
| - <img width="26" height="26" src="{{StaticUrlPrefix}}/img/gogs.ico"> |
16 |
| - {{else if eq .HookType "slack"}} |
17 |
| - <img width="26" height="26" src="{{StaticUrlPrefix}}/img/slack.png"> |
18 |
| - {{else if eq .HookType "discord"}} |
19 |
| - <img width="26" height="26" src="{{StaticUrlPrefix}}/img/discord.png"> |
20 |
| - {{else if eq .HookType "dingtalk"}} |
21 |
| - <img width="26" height="26" src="{{StaticUrlPrefix}}/img/dingtalk.png"> |
22 |
| - {{else if eq .HookType "telegram"}} |
23 |
| - <img width="26" height="26" src="{{StaticUrlPrefix}}/img/telegram.png"> |
24 |
| - {{else if eq .HookType "msteams"}} |
25 |
| - <img width="26" height="26" src="{{StaticUrlPrefix}}/img/msteams.png"> |
26 |
| - {{else if eq .HookType "feishu"}} |
27 |
| - <img width="26" height="26" src="{{StaticUrlPrefix}}/img/feishu.png"> |
28 |
| - {{else if eq .HookType "matrix"}} |
29 |
| - <img width="26" height="26" src="{{StaticUrlPrefix}}/img/matrix.svg"> |
30 |
| - {{end}} |
31 |
| - </div> |
32 |
| - </h4> |
33 |
| - <div class="ui attached segment"> |
34 |
| - {{template "repo/settings/webhook/gitea" .}} |
35 |
| - {{template "repo/settings/webhook/gogs" .}} |
36 |
| - {{template "repo/settings/webhook/slack" .}} |
37 |
| - {{template "repo/settings/webhook/discord" .}} |
38 |
| - {{template "repo/settings/webhook/dingtalk" .}} |
39 |
| - {{template "repo/settings/webhook/telegram" .}} |
40 |
| - {{template "repo/settings/webhook/msteams" .}} |
41 |
| - {{template "repo/settings/webhook/feishu" .}} |
42 |
| - {{template "repo/settings/webhook/matrix" .}} |
43 |
| - </div> |
44 |
| - |
45 |
| - {{template "repo/settings/webhook/history" .}} |
| 6 | + {{template "base/alert" .}} |
| 7 | + <h4 class="ui top attached header"> |
| 8 | + {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}} |
| 9 | + <div class="ui right"> |
| 10 | + {{if eq .HookType "gitea"}} |
| 11 | + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/gitea.svg"> |
| 12 | + {{else if eq .HookType "gogs"}} |
| 13 | + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/gogs.ico"> |
| 14 | + {{else if eq .HookType "slack"}} |
| 15 | + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/slack.png"> |
| 16 | + {{else if eq .HookType "discord"}} |
| 17 | + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/discord.png"> |
| 18 | + {{else if eq .HookType "dingtalk"}} |
| 19 | + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/dingtalk.png"> |
| 20 | + {{else if eq .HookType "telegram"}} |
| 21 | + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/telegram.png"> |
| 22 | + {{else if eq .HookType "msteams"}} |
| 23 | + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/msteams.png"> |
| 24 | + {{else if eq .HookType "feishu"}} |
| 25 | + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/feishu.png"> |
| 26 | + {{else if eq .HookType "matrix"}} |
| 27 | + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/matrix.svg"> |
| 28 | + {{end}} |
46 | 29 | </div>
|
| 30 | + </h4> |
| 31 | + <div class="ui attached segment"> |
| 32 | + {{template "repo/settings/webhook/gitea" .}} |
| 33 | + {{template "repo/settings/webhook/gogs" .}} |
| 34 | + {{template "repo/settings/webhook/slack" .}} |
| 35 | + {{template "repo/settings/webhook/discord" .}} |
| 36 | + {{template "repo/settings/webhook/dingtalk" .}} |
| 37 | + {{template "repo/settings/webhook/telegram" .}} |
| 38 | + {{template "repo/settings/webhook/msteams" .}} |
| 39 | + {{template "repo/settings/webhook/feishu" .}} |
| 40 | + {{template "repo/settings/webhook/matrix" .}} |
47 | 41 | </div>
|
| 42 | + |
| 43 | + {{template "repo/settings/webhook/history" .}} |
48 | 44 | </div>
|
49 | 45 | </div>
|
50 | 46 | {{template "base/footer" .}}
|
0 commit comments