{% load i18n %}
{% if not domain.enable_dns_checks or domain.uses_a_reserved_tld %}
{% trans "Disabled" context "checks" %}
{% elif domain.awaiting_checks %}
{% trans "Awaiting checks" %}
{% else %}
{% if enable_mx_checks %}
MX
{% endif %}
{% if enable_dnsbl_checks %}
DNSBL
{% endif %}
{% if enable_spf_checks %}
{% if not domain.spf_record %}
SPF
{% else %}
SPF
{% endif %}
{% endif %}
{% if enable_dkim_checks and domain.enable_dkim %}
{% if not domain.dkim_public_key %}
DKIM
{% elif not domain.dkim_record %}
DKIM
{% else %}
DKIM
{% endif %}
{% endif %}
{% if enable_dmarc_checks %}
{% if not domain.dmarc_record %}
DMARC
{% else %}
DMARC
{% endif %}
{% endif %}
{% if enable_autoconfig_checks %}
{% if not domain.autoconfig_record and not domain.autodiscover_record %}
autoconfig
{% elif not domain.autoconfig_record or not domain.autodiscover_record %}
autoconfig
{% else %}
autoconfig
{% endif %}
{% endif %}
{% endif %}