Files
continuwuity/src/web/pages/templates/_components/avatar.html.j2
T

7 lines
269 B
Django/Jinja

{% match avatar_type %}
{% when AvatarType::Initial with (initial) %}
<span class="avatar" role="img" aria-hidden="true">{{ initial }}</span>
{% when AvatarType::Image with (src) %}
<img class="avatar" src="{{ src }}" aria-hidden="true">
{% endmatch %}