|
1 | 1 | {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin settings new webhook")}}
|
2 | 2 | <div class="admin-setting-content">
|
3 |
| - <h4 class="ui top attached header"> |
4 |
| - {{if .PageIsAdminDefaultHooksNew}} |
5 |
| - {{.locale.Tr "admin.defaulthooks.add_webhook"}} |
6 |
| - {{else if .PageIsAdminSystemHooksNew}} |
7 |
| - {{.locale.Tr "admin.systemhooks.add_webhook"}} |
8 |
| - {{else if .Webhook.IsSystemWebhook}} |
9 |
| - {{.locale.Tr "admin.systemhooks.update_webhook"}} |
10 |
| - {{else}} |
11 |
| - {{.locale.Tr "admin.defaulthooks.update_webhook"}} |
12 |
| - {{end}} |
13 |
| - <div class="ui right"> |
14 |
| - {{template "shared/webhook/icon" .}} |
15 |
| - </div> |
16 |
| - </h4> |
17 |
| - <div class="ui attached segment"> |
18 |
| - {{template "repo/settings/webhook/gitea" .}} |
19 |
| - {{template "repo/settings/webhook/gogs" .}} |
20 |
| - {{template "repo/settings/webhook/slack" .}} |
21 |
| - {{template "repo/settings/webhook/discord" .}} |
22 |
| - {{template "repo/settings/webhook/dingtalk" .}} |
23 |
| - {{template "repo/settings/webhook/telegram" .}} |
24 |
| - {{template "repo/settings/webhook/msteams" .}} |
25 |
| - {{template "repo/settings/webhook/feishu" .}} |
26 |
| - {{template "repo/settings/webhook/matrix" .}} |
27 |
| - {{template "repo/settings/webhook/wechatwork" .}} |
28 |
| - {{template "repo/settings/webhook/packagist" .}} |
29 |
| - </div> |
30 |
| - |
31 |
| - {{template "repo/settings/webhook/history" .}} |
| 3 | + {{$CustomHeaderTitle := .locale.Tr "admin.defaulthooks.update_webhook"}} |
| 4 | + {{if .PageIsAdminDefaultHooksNew}} |
| 5 | + {{$CustomHeaderTitle = .locale.Tr "admin.defaulthooks.add_webhook"}} |
| 6 | + {{else if .PageIsAdminSystemHooksNew}} |
| 7 | + {{$CustomHeaderTitle = .locale.Tr "admin.systemhooks.add_webhook"}} |
| 8 | + {{else if .Webhook.IsSystemWebhook}} |
| 9 | + {{$CustomHeaderTitle = .locale.Tr "admin.systemhooks.update_webhook"}} |
| 10 | + {{end}} |
| 11 | + {{template "webhook/new" (dict "ctxData" . "CustomHeaderTitle" $CustomHeaderTitle)}} |
32 | 12 | </div>
|
33 | 13 | {{template "admin/layout_footer" .}}
|
0 commit comments