diff --git a/ippisite/ippidb/templates/base.html b/ippisite/ippidb/templates/base.html index 017ac693ebcde59372b70614882385a495dd536f..c5d350d386661a60e2e1befc78d4617e584ef2af 100644 --- a/ippisite/ippidb/templates/base.html +++ b/ippisite/ippidb/templates/base.html @@ -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 %}