{% extends "layouts/l-page_16-80.html" %} {% load russian %} {% load i18n %} {% load mailarchive_extra %} {% block extra_title %}{{ list.name }} - {% endblock %} {% block l-page-class %}l-page_ml-subscribers{% endblock %} {% block content %} {% include "mailarchive/_notifications.html" %} {% include "mailarchive/_list/_header.html" %}

{% blocktrans count group_permissions_count as counter %}Group permission revoke confirmation{% plural %}Groups permission revoke confirmation{% endblocktrans %}{#Подтверждение отзыва доступа у групп{% if group_permissions_count == 1 %}ы{% endif %} #}

{% blocktrans count group_permissions_count as counter %}You want to revoke permissions from group{% plural %}You want to revoke permissions from groups{% endblocktrans %}{#Вы хотите отозвать доступ у групп{% if group_permissions_count == 1 %}ы{% endif %}#} {% for gp in group_permissions %}{{ gp.group.name }}{% if not forloop.last %}, {% endif %}{% endfor %}.

{% if to_unsubscribe %}

{% blocktrans count to_unsubscribe|length as counter %}Will be unsubscribed and denied access{% plural %}Will be unsubscribed and denied access{% endblocktrans %}{#Будут отписаны и лишены доступа#}

{% blocktrans count to_unsubscribe|length as counter %}{{ counter }} man{% plural %}{{ counter }} people{% endblocktrans %}
{% for user_ext in to_unsubscribe %} {% endfor %}
{{ user_ext.fullname }} {{ user_ext.subscription_type|subscription_type_display }} {% trans "subscribe individually" %}
{% endif %}
{% for gp in group_permissions %} {% endfor %}
{% if to_unsubscribe %}
{% endif %} {% if to_unsubscribe %}
{% trans "Colleagues will be noticed about access revoke" %} {% endif %}
{% if permission_preserved %}

{% blocktrans count permission_preserved|length as counter %}Will preserve access{% plural %}Will preserve access{% endblocktrans %}{#Сохранят доступ#}

{% blocktrans count permission_preserved|length as counter %}{{ counter }} man{% plural %}{{ counter }} people{% endblocktrans %}
{% for user_ext in permission_preserved %} {% endfor %}
{{ user_ext.fullname }} {% with user_ext.reason_to_preserve as reason %} {% if reason == 'is_owner' %} {% trans "responsible" %}{#ответственный#} {% else %}{% if reason == 'permitted_groups' %} {% trans "is a member of group" %}: {% with user_ext.permitted_groups|first as g %}{{ g.name }}{% endwith %} {% else %}{% if reason == 'has_personal_permission' %} {% trans "personal permission" %}{#имеет личный доступ #} {% else %}{# неизвестная причина!! #} {% endif %}{% endif %}{% endif %} {% endwith %} {% for group in user_ext.affected_groups %}{{ group.name }}{% if not forloop.last %}, {% endif %}{% endfor %}
{% endif %} {% if to_revoke %}

{% blocktrans count to_revoke|length as counter %}Access will be deny{% plural %}Access will be deny{% endblocktrans %}{# Будут лишены доступа #}

{% blocktrans count to_revoke|length as counter %}{{ counter }} man{% plural %}{{ counter }} people{% endblocktrans %}
{% if to_revoke|length > 200 %} {% setvar "nchunks" 4 %} {% else %}{% if to_revoke|length > 50 %} {% setvar "nchunks" 3 %} {% else %}{% if to_revoke|length > 20 %} {% setvar "nchunks" 2 %} {% else %} {% setvar "nchunks" 1 %} {% endif %}{% endif %}{% endif %} {% with to_revoke|split_in_chunks:nchunks as splitted %} {% for chunk in splitted %} {% endfor %} {% endwith %} {% endif %} {% endblock %}