{% from "macros/_blocks.html" import card_block %}
{% macro icon_card(icon, text, href=None) %}
{% if href %}
{% call card_block(classes="center-align") %}
{{ icon }}
{{ text|truncate(length=8) }}
{% endcall %}
{% else %}
{% call card_block(classes="center-align") %}
{{ icon }}
{{ user.profile.email }}
{% if user.profile.phone %}{{ user.profile.phone|phone }}
{% endif %}Done