{% extends "cbb/index.html" %} {% load cbb_extras %} {% block title %} - Список блокировок{% endblock %} {% block name %}Список исторических блокировок{% endblock %} {% block content %}
{% for version, output in version_to_output.items %} {% if output|length %} {% if search %}

Результат поиска {% if version == 'txt' %} текстовых блокировок по строке {% elif version == 're' %} списков регулярок по строке {% else %} IPv{{ version }} блокировок по адресу {% endif %} {{ search }}


{% endif %} {% regroup output by group as output_by_group %} {% for group in output_by_group %}

Группа {{ group.grouper.id }} - {{ group.grouper.group_descr }}

{% for block in group.list %}
{% if block.active %} {% with active=block.active %}
Блокировка: {% if version == 'txt' %} {{ active.rng_txt }} {% else %} {{ active.get_full_range }} {% endif %}
{% endwith %} {% else %}
Блокировка: {{ block.block }}
{% endif %}
Состояние: {% if block.active %} активна {% else %} неактивна {% endif %}
{% if block.active %} {% with active=block.active %}
Создана Кто заблокировал Причина блокировки Истекает
{{ active.created|date:"Y-m-d" }} {{ active.created|date:"H:i:s" }} {{ active.user }} {{ active.block_descr }} {{ active.expire|date:"Y-m-d" }} {{ active.expire|date:"H:i:s" }}
{% endwith %} {% endif %} {% if block.history %} {% for history in block.history %} {% endfor %}
История
Создана Снята Кто заблокировал Кто разблокировал Причина блокировки Причина разблокировки Предыдущая группа Текущая группа
{{ history.blocked_at|date:"Y-m-d" }} {{ history.blocked_at|date:"H:i:s" }} {{ history.unblocked_at|date:"Y-m-d" }} {{ history.unblocked_at|date:"H:i:s" }} {{ history.blocked_by}} {{ history.unblocked_by}} {{ history.block_description}} {{ history.unblock_description}} {{ history.group_id}} {% if history.current_bin != null %} / бин {{ history.current_bin }} {% endif %} {% if history.new_group_id %} {{ history.new_group_id }} {% if history.new_bin != null %} / бин {{ history.new_bin }} {% endif %} {% else %}неактивна{% endif %}
{% endif %}
{% endfor %} {% endfor %} {% endif %} {% endfor %}
{% endblock %}