Show username in nav header

This commit is contained in:
Timothy Hobbs 2023-11-23 20:59:58 +01:00
parent 4481795c7f
commit cec90aafdd

View File

@ -75,6 +75,11 @@
</li>
{% endif %}
{% if not request.path == '/helpdesk/login/' or user.is_authenticated %}
<div class="nav-item">
<div class="nav-link">
{{user.username}}
</div>
</div>
<li class="nav-item dropdown no-arrow">
{% if user.is_authenticated %}
<a class="nav-link dropdown-toggle" href="{% url 'helpdesk:logout' %}" id="userDropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fas fa-fw fa-sign-out-alt"></i> {% trans "Logout" %}</a>