Add a password change link + fix full name display
This commit is contained in:
parent
dca0269e9b
commit
eb68228278
1 changed files with 3 additions and 1 deletions
|
@ -13,13 +13,15 @@
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
|
||||||
data-toggle="dropdown"
|
data-toggle="dropdown"
|
||||||
aria-haspopup="true" aria-expanded="false">
|
aria-haspopup="true" aria-expanded="false">
|
||||||
{% firstof user.full_name user.username %}
|
{% firstof user.get_full_name user.username %}
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||||
{% if user.is_staff %}
|
{% if user.is_staff %}
|
||||||
<a class="dropdown-item" href="{% url 'admin:index' %}">Admin</a>
|
<a class="dropdown-item" href="{% url 'admin:index' %}">Admin</a>
|
||||||
<div role="separator" class="dropdown-divider"></div>
|
<div role="separator" class="dropdown-divider"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<a class="dropdown-item" href="{% url 'password_change' %}">Modifier le mot de passe</a>
|
||||||
|
<div role="separator" class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item" href="{% url 'logout' %}">Déconnexion</a>
|
<a class="dropdown-item" href="{% url 'logout' %}">Déconnexion</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue