mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 12:53:57 +01:00
[REFACTOR] webhook move templates
This commit is contained in:
parent
327deee2d7
commit
9558b18d22
13 changed files with 28 additions and 12 deletions
|
@ -10,17 +10,33 @@
|
||||||
</div>
|
</div>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
{{template "repo/settings/webhook/forgejo" .ctxData}}
|
{{with .ctxData}}
|
||||||
{{template "repo/settings/webhook/gitea" .ctxData}}
|
<!-- the template argument cannot be dynamic -->
|
||||||
{{template "repo/settings/webhook/gogs" .ctxData}}
|
{{if eq .HookType "forgejo"}}
|
||||||
{{template "repo/settings/webhook/slack" .ctxData}}
|
{{template "webhook/new/forgejo" .}}
|
||||||
{{template "repo/settings/webhook/discord" .ctxData}}
|
{{else if eq .HookType "gitea"}}
|
||||||
{{template "repo/settings/webhook/dingtalk" .ctxData}}
|
{{template "webhook/new/gitea" .}}
|
||||||
{{template "repo/settings/webhook/telegram" .ctxData}}
|
{{else if eq .HookType "gogs"}}
|
||||||
{{template "repo/settings/webhook/msteams" .ctxData}}
|
{{template "webhook/new/gogs" .}}
|
||||||
{{template "repo/settings/webhook/feishu" .ctxData}}
|
{{else if eq .HookType "slack"}}
|
||||||
{{template "repo/settings/webhook/matrix" .ctxData}}
|
{{template "webhook/new/slack" .}}
|
||||||
{{template "repo/settings/webhook/wechatwork" .ctxData}}
|
{{else if eq .HookType "discord"}}
|
||||||
{{template "repo/settings/webhook/packagist" .ctxData}}
|
{{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}}
|
||||||
</div>
|
</div>
|
||||||
{{template "repo/settings/webhook/history" .ctxData}}
|
{{template "repo/settings/webhook/history" .ctxData}}
|
||||||
|
|
Loading…
Reference in a new issue