{% load i18n auth utils subjects reliability %}
{{ subject|verbose_name:'privacy_level' }}
{{ subject.privacy_level }}
{% translate "Reliability" %}
{% with summary=subject|reliability_summary %} {% if summary %}({{ summary }}){% endif %} {% endwith %}
{# also show not_available_until if it should have been set on legal representatives #} {% if not subject.is_available and subject.contact.has_legal_representative %}
{% translate "Currently available" %}
{% translate "No" %} {% icon 'phone' %} {% blocktranslate with next_available=subject.not_available_until %} (not until {{ next_available }}) {% endblocktranslate %}
{% endif %}
{% for legal_representative in subject.contact.legal_representatives.all %}
{% has_privacy_level legal_representative.subject.privacy_level user as can_access %} {% if can_access %} {% include 'contacts/__contact_detail.html' with contact=legal_representative legal_representative=True %} {% else %}
{% translate 'Legal representative' %}
{% translate 'Insufficient privacy level' %}
{% endif %} {% empty %} {% include 'contacts/__contact_detail.html' with contact=subject.contact %} {% endfor %}