{% import 'components/avatar.html' as avatar with context %}
{% if identities is defined %}
{{ avatar.avatar(entity_jid) }}
{% endif %}
{{identities[entity_jid].nicknames[0] if identities[entity_jid].nicknames else entity_jid}}
{{entity_jid}}