2023-09-05 17:30:28 +05:30
|
|
|
<h4 class="ui top attached header">
|
2023-09-06 15:41:06 +05:30
|
|
|
{{.CustomHeaderTitle}}
|
2024-02-15 19:29:48 +05:30
|
|
|
<div class="ui right type dropdown">
|
2024-03-23 01:21:29 +05:30
|
|
|
<div class="text tw-flex tw-items-center">
|
2024-02-15 19:29:48 +05:30
|
|
|
{{template "shared/webhook/icon" (dict "Size" 20 "HookType" .ctxData.HookType)}}
|
|
|
|
{{ctx.Locale.Tr (print "repo.settings.web_hook_name_" .ctxData.HookType)}}
|
|
|
|
</div>
|
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
|
|
|
{{template "repo/settings/webhook/link_menu" .ctxData}}
|
2023-09-05 17:30:28 +05:30
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
2024-03-22 16:20:59 +05:30
|
|
|
{{with .ctxData}}
|
|
|
|
<!-- the template argument cannot be dynamic -->
|
|
|
|
{{if eq .HookType "forgejo"}}
|
|
|
|
{{template "webhook/new/forgejo" .}}
|
|
|
|
{{else if eq .HookType "gitea"}}
|
|
|
|
{{template "webhook/new/gitea" .}}
|
|
|
|
{{else if eq .HookType "gogs"}}
|
|
|
|
{{template "webhook/new/gogs" .}}
|
|
|
|
{{else if eq .HookType "slack"}}
|
|
|
|
{{template "webhook/new/slack" .}}
|
|
|
|
{{else if eq .HookType "discord"}}
|
|
|
|
{{template "webhook/new/discord" .}}
|
|
|
|
{{else if eq .HookType "dingtalk"}}
|
|
|
|
{{template "webhook/new/dingtalk" .}}
|
|
|
|
{{else if eq .HookType "telegram"}}
|
|
|
|
{{template "webhook/new/telegram" .}}
|
|
|
|
{{else if eq .HookType "msteams"}}
|
|
|
|
{{template "webhook/new/msteams" .}}
|
|
|
|
{{else if eq .HookType "feishu"}}
|
|
|
|
{{template "webhook/new/feishu" .}}
|
|
|
|
{{else if eq .HookType "matrix"}}
|
|
|
|
{{template "webhook/new/matrix" .}}
|
|
|
|
{{else if eq .HookType "wechatwork"}}
|
|
|
|
{{template "webhook/new/wechatwork" .}}
|
|
|
|
{{else if eq .HookType "packagist"}}
|
|
|
|
{{template "webhook/new/packagist" .}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2023-09-05 17:30:28 +05:30
|
|
|
</div>
|
2023-09-06 15:41:06 +05:30
|
|
|
{{template "repo/settings/webhook/history" .ctxData}}
|