{% macro userBanBlock(deviceType) %} {% if u.is_suspended %}
BANNED USER {% if u.ban_reason %}: {{u.ban_reason | safe}} {% endif %} (by @{{u.banned_by.username}})
{% if u.unban_utc %}
{{u.unban_string}}
{% endif %} {% endif %} {% if v and v.admin_level >= PERMS['USER_SHADOWBAN'] and u.shadowbanned %}
SHADOWBANNED USER {% if u.ban_reason %}: {{u.ban_reason | safe}} {% endif %} (by @{{u.shadowbanned}})
{% endif %} {% endmacro %} {% macro userAdminToolsUpper(deviceType) %} {% if v and v.id != u.id and v.admin_level >= PERMS['USER_MODERATION_TOOLS_VISIBLE'] %} {% if v.admin_level >= PERMS['ADMIN_ADD'] %} {% endif %} {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} {% endif %} {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] and u.admin_level %} {% endif %} {% endif %} {% endmacro %} {% macro userAdminToolsLower(deviceType) -%} {% if v and v.id != u.id and v.admin_level >= PERMS['USER_MODERATION_TOOLS_VISIBLE'] %}


{% if v.admin_level >= PERMS['USER_TITLE_CHANGE'] %}
{% endif %} {% if v.admin_level >= PERMS['USER_BAN'] %} {% if u.is_suspended %}
{% else %}
{% endif %} {% endif %} {% if v.admin_level >= PERMS['USER_SHADOWBAN'] %} {% if u.shadowbanned %}
{% else %}
{% endif %} {% endif %} {% if v.admin_level >= PERMS['USER_AGENDAPOSTER'] %}
{% endif %} {% if v.admin_level >= PERMS['USER_BAN'] %} {% endif %} {% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
{% endif %} {% if FEATURES['COUNTRY_CLUB'] and v and v.admin_level >= PERMS['USER_CLUB_ALLOW_BAN'] %} {% endif %}
{% endif %} {%- endmacro %}