From ae03dbcd64eca394bec1a5f5a39f27e929cf4df7 Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Fri, 16 Jul 2021 01:54:00 +0500 Subject: [PATCH] Add Telegram widget to the Lock page --- static/default.css | 3 +++ views/auth.qtpl | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/static/default.css b/static/default.css index 965653a..3eb5992 100644 --- a/static/default.css +++ b/static/default.css @@ -550,6 +550,9 @@ kbd { display: flex; justify-content: center; } +.locked-notice .telegram-notice { + display: none; +} .locked-notice__message { max-width: 30rem; diff --git a/views/auth.qtpl b/views/auth.qtpl index 51528a2..48b27e1 100644 --- a/views/auth.qtpl +++ b/views/auth.qtpl @@ -69,7 +69,7 @@ Telegram auth widget was requested by Yogurt. As you can see, we don't offer user administrators control over it. Of course we don't. {% func telegramWidgetHTML() %} {% if cfg.TelegramEnabled %} -

You can log in using Telegram. It only works if you have set your @username in Telegram and this username is free on this wiki.

+

You can log in using Telegram. It only works if you have set your @username in Telegram and this username is free on this wiki.

{% endif %} {% endfunc %} @@ -137,6 +137,7 @@ Telegram auth widget was requested by Yogurt. As you can see, we don't offer use + {%= telegramWidgetHTML() %}