mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
859 B
15 lines
859 B
{{if eq .HookType "telegram"}}
|
|
<p>{{.locale.Tr "repo.settings.add_web_hook_desc" "https://core.telegram.org/bots" (.locale.Tr "repo.settings.web_hook_name_telegram") | Str2html}}</p>
|
|
<form class="ui form" action="{{.BaseLink}}/telegram/{{or .Webhook.ID "new"}}" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<div class="required field {{if .Err_BotToken}}error{{end}}">
|
|
<label for="bot_token">{{.locale.Tr "repo.settings.bot_token"}}</label>
|
|
<input id="bot_token" name="bot_token" type="text" value="{{.TelegramHook.BotToken}}" autofocus required>
|
|
</div>
|
|
<div class="required field {{if .Err_ChatID}}error{{end}}">
|
|
<label for="chat_id">{{.locale.Tr "repo.settings.chat_id"}}</label>
|
|
<input id="chat_id" name="chat_id" type="text" value="{{.TelegramHook.ChatID}}" required>
|
|
</div>
|
|
{{template "repo/settings/webhook/settings" .}}
|
|
</form>
|
|
{{end}}
|
|
|