aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/webhook/telegram.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/settings/webhook/telegram.tmpl')
-rw-r--r--templates/repo/settings/webhook/telegram.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/settings/webhook/telegram.tmpl b/templates/repo/settings/webhook/telegram.tmpl
index f618fea140..f9858c365f 100644
--- a/templates/repo/settings/webhook/telegram.tmpl
+++ b/templates/repo/settings/webhook/telegram.tmpl
@@ -1,17 +1,17 @@
{{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>
+ <p>{{ctx.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>
+ <label for="bot_token">{{ctx.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>
+ <label for="chat_id">{{ctx.Locale.Tr "repo.settings.chat_id"}}</label>
<input id="chat_id" name="chat_id" type="text" value="{{.TelegramHook.ChatID}}" required>
</div>
<div class="field {{if .Err_ThreadID}}error{{end}}">
- <label for="thread_id">{{.locale.Tr "repo.settings.thread_id"}}</label>
+ <label for="thread_id">{{ctx.Locale.Tr "repo.settings.thread_id"}}</label>
<input id="thread_id" name="thread_id" type="text" value="{{.TelegramHook.ThreadID}}">
</div>
{{template "repo/settings/webhook/settings" .}}