{% macro userBanBlock(deviceType) %} {% if u.chud %}
CHUDDED USER: (by {{u.chudder | safe}}) {% if u.chud > 1 %} - {{u.unchud_string}} {% endif %}
{% endif %} {% if u.is_suspended %}
BANNED USER: {{u.ban_reason | safe}} {% if not u.ban_reason.startswith('1-Day ban award used by') %} (by {{u.banned_by | safe}}) {% endif %} {% if u.unban_utc %} - {{u.unban_string}} {% endif %}
{% endif %} {% if v and v.admin_level >= PERMS['USER_SHADOWBAN'] and u.shadowbanned %}
SHADOWBANNED USER: {{u.shadowban_reason | safe}} (by {{u.shadowbanned_by}})
{% 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_CHANGE_FLAIR'] %}
{{macros.emoji_btn('flair_htmlbody-' ~ deviceType)}}
{% 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 FEATURES['BADGES'] and v.admin_level >= PERMS['USER_BADGES'] %} Give Badge Remove Badge {% 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 %} {% if v.admin_level >= PERMS['USER_RESET_PASSWORD'] %} {% endif %} {% if FEATURES['IP_LOGGING'] and v.admin_level >= PERMS['VIEW_IPS'] %} View User IPs {% endif %}
{% endif %} {%- endmacro %}