forked from forgejo/forgejo
parent
ea7ad382e7
commit
83a8944fcf
16 changed files with 327 additions and 3 deletions
11
templates/repo/settings/webhook/feishu.tmpl
Normal file
11
templates/repo/settings/webhook/feishu.tmpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{if eq .HookType "feishu"}}
|
||||
<p>{{.i18n.Tr "repo.settings.add_feishu_hook_desc" "https://feishu.cn" | Str2html}}</p>
|
||||
<form class="ui form" action="{{.BaseLink}}/feishu/{{or .Webhook.ID "new"}}" method="post">
|
||||
{{.CsrfTokenHtml}}
|
||||
<div class="required field {{if .Err_PayloadURL}}error{{end}}">
|
||||
<label for="payload_url">{{.i18n.Tr "repo.settings.payload_url"}}</label>
|
||||
<input id="payload_url" name="payload_url" type="url" value="{{.Webhook.URL}}" autofocus required>
|
||||
</div>
|
||||
{{template "repo/settings/webhook/settings" .}}
|
||||
</form>
|
||||
{{end}}
|
|
@ -26,6 +26,9 @@
|
|||
<a class="item" href="{{.BaseLink}}/msteams/new">
|
||||
<img class="img-10" src="{{StaticUrlPrefix}}/img/msteams.png">Microsoft Teams
|
||||
</a>
|
||||
<a class="item" href="{{.BaseLink}}/feishu/new">
|
||||
<img class="img-10" src="{{StaticUrlPrefix}}/img/feishu.png">Feishu
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
<img class="img-13" src="{{StaticUrlPrefix}}/img/telegram.png">
|
||||
{{else if eq .HookType "msteams"}}
|
||||
<img class="img-13" src="{{StaticUrlPrefix}}/img/msteams.png">
|
||||
{{else if eq .HookType "feishu"}}
|
||||
<img class="img-13" src="{{StaticUrlPrefix}}/img/feishu.png">
|
||||
{{end}}
|
||||
</div>
|
||||
</h4>
|
||||
|
@ -32,6 +34,7 @@
|
|||
{{template "repo/settings/webhook/dingtalk" .}}
|
||||
{{template "repo/settings/webhook/telegram" .}}
|
||||
{{template "repo/settings/webhook/msteams" .}}
|
||||
{{template "repo/settings/webhook/feishu" .}}
|
||||
</div>
|
||||
|
||||
{{template "repo/settings/webhook/history" .}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue