{% macro user_card(user, current_user) %} {% if user.getId is defined %} {% from _self import user_card_new %} {{ user_card_new(user, current_user) }} {% else %} {% from _self import user_card_old %} {{ user_card_old(user) }} {% endif %} {% endmacro %} {% macro user_card_new(user, current_user) %} {% from 'macros.twig' import avatar %}