ux i nowa funkcja blokady blednych logowan
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user