Fix: Login-Status im Frontend anzeigen - Template zeigt jetzt dynamisch Login/Logout-Buttons basierend auf Authentifizierungsstatus
This commit is contained in:
parent
91d6800a4d
commit
30cab22dd1
|
|
@ -44,8 +44,14 @@
|
|||
</nav>
|
||||
|
||||
<div class="header-actions">
|
||||
{% if user.is_authenticated %}
|
||||
<span class="user-welcome">🐾 Hallo, {{ user.username }}!</span>
|
||||
<a href="{% url 'products:profile' %}" class="btn furry-btn-outline">👤 Profil</a>
|
||||
<a href="{% url 'logout' %}" class="btn furry-btn">🚪 Logout</a>
|
||||
{% else %}
|
||||
<a href="{% url 'login' %}" class="btn furry-btn">🔐 Login</a>
|
||||
<a href="{% url 'register' %}" class="btn furry-btn-outline">✨ Registrieren</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
|||
Loading…
Reference in New Issue