Add a password change link + fix full name display

This commit is contained in:
Gabriel Augendre 2018-03-05 22:04:21 +01:00
parent dca0269e9b
commit eb68228278
No known key found for this signature in database
GPG key ID: F360212F958357D4

View file

@ -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>