{% macro user_profile_link(user) -%} {{ user.get_display_name() }} {%- endmacro %} {% macro user_link_with_pict(user) -%} {% if user.profile_pict %} {% trans %}Profile{% endtrans %} {% else %} {% trans %}Profile{% endtrans %} {% endif %} {{ user.get_display_name() }} {%- endmacro %}