mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 00:32:54 +01:00
65588b732c
I noticed that the code of several new webhook pages is highly repetitive, so I pulled out the common parts to a new template, unified reference, unified maintenance --------- Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
20 lines
861 B
Handlebars
20 lines
861 B
Handlebars
<h4 class="ui top attached header">
|
|
{{if .PageIsSettingsHooksNew}}{{.locale.Tr "repo.settings.add_webhook"}}{{else}}{{.locale.Tr "repo.settings.update_webhook"}}{{end}}
|
|
<div class="ui right">
|
|
{{template "shared/webhook/icon" .}}
|
|
</div>
|
|
</h4>
|
|
<div class="ui attached segment">
|
|
{{template "repo/settings/webhook/gitea" .}}
|
|
{{template "repo/settings/webhook/gogs" .}}
|
|
{{template "repo/settings/webhook/slack" .}}
|
|
{{template "repo/settings/webhook/discord" .}}
|
|
{{template "repo/settings/webhook/dingtalk" .}}
|
|
{{template "repo/settings/webhook/telegram" .}}
|
|
{{template "repo/settings/webhook/msteams" .}}
|
|
{{template "repo/settings/webhook/feishu" .}}
|
|
{{template "repo/settings/webhook/matrix" .}}
|
|
{{template "repo/settings/webhook/wechatwork" .}}
|
|
{{template "repo/settings/webhook/packagist" .}}
|
|
</div>
|
|
{{template "repo/settings/webhook/history" .}}
|