{% load idm_tags i18n %}
{% comment %}
Context variables:
    nothing_was_done - True if there is no changes
    users_to_block - users who will be blocked and only blocked in AD
    users_to_block_if - users who will be blocked and only blocked in AD if amount of such users were normal
    deprived - users who will be torn from AD-groups and whose roles will be deprived
    users_active_again - users who have recovered contract with company
{% endcomment %}

{% if was_done %}
    {% trans "По данным от OEBS IDM:" %}
    {% if users_blocked %}
      {% trans "заблокировал в AD пользователей" %}:{% for user in users_blocked %}
        {{ user|who }} ({{ user.username }}){% endfor %}{% endif %}
    {% if users_deprived %}
      {% trans "удалил из AD-групп и отозвал роли у" %}:{% for user in users_deprived %}
        {{ user|who }} ({{ user.username }}){% endfor %}{% endif %}
{% else %}
    {% trans 'Нет новых данных из OEBS.' %}
{% endif %}
