- {{ user_username.endif }}
- {{ user_is_staff.if }}
- <li><a href="{% url 'admin:index' %}">{% trans "Administration" %}</a></li>
- {{ user_is_staff.endif }}
- {{ user_username.if }}
+ {% if request.user.is_staff %}
+ <li><a href="{% url 'admin:index' %}">{% trans "Administration" %}</a></li>
+ {% endif %}