ux i nowa funkcja blokady blednych logowan

This commit is contained in:
Mateusz Gruszczyński
2025-07-05 15:13:18 +02:00
parent d0b6d939c0
commit 11617755fb
4 changed files with 159 additions and 46 deletions

View File

@ -21,13 +21,18 @@
{% if has_authorized_cookie %}
{% if current_user.is_authenticated %}
<span class="mx-auto text-white">Zalogowany jako: <strong>{{ current_user.username }}</strong></span>
<span class="mx-auto text-white">
Zalogowany jako:
<span class="badge bg-success">{{ current_user.username }}</span>
</span>
{% else %}
<span class="mx-auto text-white">Przeglądasz jako <strong>gość</strong></span>
<span class="mx-auto text-white">
Przeglądasz jako
<span class="badge bg-info">gość</span>
</span>
{% endif %}
{% endif %}
<div class="d-flex align-items-center gap-2">
{% if current_user.is_authenticated and current_user.is_admin %}
<a href="{{ url_for('admin_panel') }}" class="btn btn-outline-warning btn-sm">⚙️ Panel admina</a>