Skip to content
Snippets Groups Projects
Commit 2b1c8e9c authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

display a different user icon depending on permissions

probably a work in progress, but could be informative
parent 5af3f056
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,8 @@
</div>
<nav class="fixed-top">
<ul class="nav justify-content-end">
{% if user.is_authenticated %}{{ user.perms }}
<li><i class="fas fa-user-circle"></i> {{ user.username }}<a class="ml-2" href="{% url 'logout' %}">logout</a></li>
{% if user.is_authenticated %}
<li><i class="fas {% if user.is_superuser %}fa-user-shield{% elif perms.ippidb.add_contribution %}fa-user-graduate{% else %}fa-user-circle{% endif %}"></i> {{ user.username }}<a class="ml-2" href="{% url 'logout' %}">logout</a></li>
{% else %}
<li><a href="/accounts/login/"><i class="fas fa-user-circle mr-2" title="Login"></i> LOGIN</a></li>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment