From a6041be1876052c119b9abcd87119886eb48ab4e Mon Sep 17 00:00:00 2001 From: burzuf Date: Thu, 19 Mar 2020 19:26:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=87=D0=B8=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=D1=85=D0=BE=D0=B4=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=86=D0=B5=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/registration.html | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/templates/registration.html b/templates/registration.html index 01214d2..fd8efd6 100644 --- a/templates/registration.html +++ b/templates/registration.html @@ -27,10 +27,22 @@
-
Войти
+ {% if current_user.is_authenticated %} +

{{ + current_user.username }}

+ + {% else %} +
Войти
+ {% endif %}