{% load i18n authentic2 django_select2_tags %} {% addtoblock "js" %}{% import_django_select2_js %}{% endaddtoblock %} {% addtoblock "css" %}{% import_django_select2_css %}{% endaddtoblock %}
{% with collectivities=request.ssl_info.collectivity counter=collectivities|length %} {% if counter < 2 %} {% blocktrans with first=collectivities.0 %}You are authenticated with certificate of collectivity {{ first }}. It has been pre-selected for you.{% endblocktrans %} {% else %} {% blocktrans with all=collectivities|join:", " %}You are authenticated with certificate of collectivities {{ all }}. It has been pre-selected for you.{% endblocktrans %} {% endif %} {% endwith %}
{% endif %}