aemo_fr/templates/user_bar.html

14 lines
634 B
HTML
Raw Permalink Normal View History

2024-06-03 16:49:01 +02:00
<div class="row">
<div id="user-bar" class="col-xl-6 text-end">
{% if user.is_authenticated %}
<div id="user-tools" class="d-flex justify-content-end">
<div class="p-1"><a href="{% url 'two_factor:profile' %}">{% firstof user.get_short_name user.get_username %}</a> |</div>
<form method="post" class="d-inline p-1" action="{% url 'logout' %}">{% csrf_token %}
<button type="submit" class="btn btn-link p-0">Se déconnecter</button>
</form>
</div>
{% endif %}
<div class="col-xl-1"></div>
</div>
</div>