mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-25 09:23:39 +01:00
Show username in nav header
This commit is contained in:
parent
4481795c7f
commit
cec90aafdd
@ -75,6 +75,11 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not request.path == '/helpdesk/login/' or user.is_authenticated %}
|
{% 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">
|
<li class="nav-item dropdown no-arrow">
|
||||||
{% if user.is_authenticated %}
|
{% 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>
|
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user