{% macro avatar(user, scope="plattform") -%} {% if user and user.avatar_config and user.avatar_config != None %} {{ wa(user.avatar_config) }} {# {% elif user.avatar_url != None %} TODO: personal avatar if ever implemented #} {% else %} {{ no_avatar(scope) }} {% endif %} {%- endmacro %} {% macro no_avatar(scope="plattform") -%} {%- endmacro %} {% macro wa(avatar_config) %} {% if avatar_config and avatar_config.custom and avatar_config.index and avatar_config.index < 0 %}