mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-27 10:57:34 +00:00
7 lines
269 B
Django/Jinja
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 %}
|