{% load i18n %} {{ domain }} {% if forloop.first %} {% trans "Total" %} SPF DKIM {% else %} {% endif %} {% for ip_address, results in stats.items %} {{ ip_address }} {{ results.total }} {% if not only_failed %}{{ results.spf.pass }}{% endif %} {{ results.spf.fail }} {% if not only_failed %}{{ results.dkim.pass }}{% endif %} {{ results.dkim.fail }} {% endfor %}