mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-13 05:50:27 +00:00
Add Telegram widget to the Lock page
This commit is contained in:
parent
49b0a35304
commit
ae03dbcd64
@ -550,6 +550,9 @@ kbd {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.locked-notice .telegram-notice {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.locked-notice__message {
|
||||
max-width: 30rem;
|
||||
|
@ -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 %}
|
||||
<p>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.</p>
|
||||
<p class="telegram-notice">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.</p>
|
||||
<script async src="https://telegram.org/js/telegram-widget.js?15" data-telegram-login="{%s cfg.TelegramBotName %}" data-size="medium" data-userpic="false" data-auth-url="{%s cfg.URL %}/telegram-login"></script>
|
||||
{% endif %}
|
||||
{% endfunc %}
|
||||
@ -137,6 +137,7 @@ Telegram auth widget was requested by Yogurt. As you can see, we don't offer use
|
||||
<input class="btn" type="submit" value="Log in">
|
||||
</form>
|
||||
</section>
|
||||
{%= telegramWidgetHTML() %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user