mirror of
https://github.com/go-gitea/gitea
synced 2024-11-09 19:42:09 +01:00
d848098f60
* Enforce tab indendation in templates This adds editorconfig-checker [1] to lint the template files so they conform the editorconfig files. I fixed all current identation issues using the fix mode of eclint [2] and some manual corrections. We can extend this linting to other files later, for now I'd like this PR to focus on HTML template files only. [1] https://github.com/editorconfig-checker/editorconfig-checker [2] https://github.com/jedmao/eclint * fix indendation Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
15 lines
806 B
Handlebars
15 lines
806 B
Handlebars
{{if eq .HookType "telegram"}}
|
|
<p>{{.i18n.Tr "repo.settings.add_telegram_hook_desc" "https://core.telegram.org/bots" | 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">{{.i18n.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">{{.i18n.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}}
|