From 59d505d955328953c660c9724f7982ca41a3af9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 10 Jul 2025 16:51:04 +0200 Subject: [PATCH] ux dla badge --- templates/base.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/templates/base.html b/templates/base.html index d748f14..e3c9947 100644 --- a/templates/base.html +++ b/templates/base.html @@ -20,18 +20,19 @@ {% if has_authorized_cookie %} {% if current_user.is_authenticated %} - - Zalogowany: +
+ Zalogowany: {{ current_user.username }} - +
{% else %} - - Przeglądasz jako +
+ Przeglądasz jako gość - +
{% endif %} {% endif %} +
{% if request.endpoint != 'system_auth' %} {% if current_user.is_authenticated and current_user.is_admin %}