{% macro user_card(user) %} {% from 'macros.twig' import avatar %} {% if user.info is defined %} {% set colour = user.colour %} {% set info = user.info %} {% set ftopics = user.ftopics %} {% set fposts = user.fposts %} {% else %} {% set colour = user.user_colour %} {% set info = { 'id': user.user_id, 'name': user.username, 'title': user.user_title|default(''), 'countryCode': user.user_country|default('XX'), 'lastActiveTime': user.user_active, 'createdTime': user.user_created } %} {% set ftopics = user.user_count_topics %} {% set fposts = user.user_count_posts %} {% endif %}