{% extends 'manage/users/master.twig' %} {% from 'macros.twig' import pagination, container_title, avatar %} {% set bans_pagination = pagination(manage_bans_pagination, 'manage-users-bans', {'user': manage_bans_filter_user.id|default(0)}) %} {% set bans_filtering = manage_bans_filter_user is not null %} {% block manage_content %}
{{ container_title(' Bans') }}
List of user bans. {% if not bans_filtering %}Filter by a user to issue a new ban.{% endif %}
{% if bans_pagination|trim|length > 0 %}
{{ bans_pagination }}
{% endif %} {% if bans_filtering %}
Issue new Ban
{% endif %}
{% for ban in manage_bans %}
{% if ban.mod is not null %} {% endif %}
{% if ban.info.permanent %}
PERMANENT
{% else %}
{% if ban.info.active %} {{ ban.info.remainingString }} remaining {% else %} {{ ban.info.durationString }} {% endif %}
{% if ban.info.active %}
active
{% else %}
expired
{% endif %}
{% endif %}
Subject
{% if not bans_filtering %} {% endif %}
{% if ban.info.publicReason is not empty %}
Reason displayed publicly and to the user themselves:
{{ ban.info.publicReason }}
{% else %}
This ban does not display any reason.
{% endif %} {% if ban.info.privateReason is not empty %}
Additional information for moderators:
{{ ban.info.privateReason }}
{% else %}
This ban does not provide additional information for moderators.
{% endif %}
{% endfor %}
{% if bans_pagination|trim|length > 0 %}
{{ bans_pagination }}
{% endif %}
{% endblock %}