{% 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.shadowbanner}})
{% endif %} {% endmacro %} {% macro userAdminTools(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'] %}
{% endif %} {% if v.admin_level >= PERMS['USER_SHADOWBAN'] %}
{% endif %} {% if v.admin_level >= PERMS['USER_CHUD'] %}
{% endif %}
{% if v.admin_level >= PERMS['ADMIN_ADD'] and not u.admin_level %} {% endif %} {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} {% endif %} {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] and u.admin_level %} {% endif %} {% if v.admin_level >= PERMS['USER_BAN'] %} {% endif %} {% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
{% endif %} {% if v.admin_level >= PERMS['USER_BLACKLIST'] %} {% endif %}
{% endif %} {%- endmacro %}