view sat_templates/templates/default/components/avatar.html @ 393:772e73148132

browser (meta): fix the version of Bulma: Bulma version is fixed to 0.9.4 as we are not yet compatible with the new 1.0 version.
author Goffi <goffi@goffi.org>
date Sat, 06 Apr 2024 13:07:26 +0200
parents 1215a6e2385f
children
line wrap: on
line source

{% macro avatar(jid, class) %}
    {%- if identities is defined -%}
        {%- if identities[jid].avatar_basename %}
            <img class="avatar {{class}}" src="/cache/common/{{identities[jid].avatar_basename}}">
        {% else %}
            <span class="avatar avatar--generated {{class}}"><span class="avatar__content">{{identities[jid].nicknames[0]|first|upper}}</span></span>
        {%- endif -%}
    {%- endif -%}
{% endmacro %}