{% if profile_mode is empty %}
{% if profile_is_editing %}
DiscardSettings
{% else %}
{% if profile_can_edit %}
Edit Profile
{% endif %}
{% if profile_can_send_messages %}
Send Message
{% endif %}
{% endif %}
{% else %}
Return
{% endif %}
{% endif %}
{% if stats is defined %}
{% for stat in stats %}
{% if stat.value|default(0) > 0 %}
{% set is_date = stat.is_date|default(false) %}
{% set is_url = stat.url is defined %}
{% set active_class = stat.active|default(false) ? ' profile__header__stat--active' : '' %}
{% if is_url %}
{% else %}
This user has been banned {% if profile_ban_info.permanent %}permanently{% else %}for {{ profile_ban_info.remainingString }}{% endif %} since .
{% if not profile_is_guest and profile_ban_info.publicReason is not empty %}