{% load idm_tags i18n %}
{% lines strip %}
{% with one_group=groups|length_is:"1" %}
{% with left_bracket=one_group|yesno:",[" right_bracket=one_group|yesno:",]" %}
    {% if one_group %}
        {% include "emails/includes/approvers.txt" with approvers=groups.0 conjunction="and"|union form="кто"%}
    {% else %}
        {% line %}
        {% for approvers in groups %}
            {% if not forloop.first %}{% if forloop.last %} {{ "and"|union }} {% else %}, {% endif %}{% endif %}
            {{ left_bracket }}{% strip %}{% include "emails/includes/approvers.txt" with conjunction="or"|union form="кто"%}{% endstrip %}{{ right_bracket }}

        {% endfor %}
        {% endline %}
    {% endif %}
{% endwith %}
{% endwith %}
{% line %}
    {% if groups|check_hidden %}
        {% trans "(полный список можно посмотреть в карточке запроса)" %}
    {% endif %}
{% endline %}
    {% endlines %}
