{% extends "base.html" %} {% load i18n pagination_tags numbers %} {% block title %} {% trans "Bans" %} | {{ block.super }} {% endblock %} {% block content-title %}{% trans "Bans" %}{% endblock %} {% block content %}

{% blocktrans with t_ip=ip %} Your IP {{ t_ip }} is {% endblocktrans %} {% if banned %} {% trans "banned" %}. {% else %} {% trans "not banned" %}. {% endif %}

{% autopaginate bans %} {% paginate %} {# #} {% for ban in bans %} {# #} {% endfor %}
{% trans "Date" %} {% trans "Player" %} {% trans "Admin" %} {% trans "Reason" %} {% trans "Length" %}{% trans "Active" %}
{{ ban.get_date|date:"d.m.Y" }} {% if user.is_staff %} {{ ban.get_country.country_name }} {% endif %} {{ ban.player_nick|truncate_chars:20 }} {{ ban.admin_nick }} {{ ban.ban_reason }} {{ ban.get_length }}{% if ban.is_active %}{% trans "yes" %}{% else %}{% trans "no" %}{% endif %}
{% paginate %} {% endblock %}