{% if user.is_authenticated %} {% if user.ldap_user and 'thumbnailPhoto' in user.ldap_user.attrs %} {# TODO insert photo from ldap #} {% endif %} {% if user.first_name and user.last_name %}

{{ user.first_name }} {{ user.last_name }}

{% else %}

{{ user.username }}

{% endif %}
{% endif %}