{% extends 'admin/master.html' %} {% block head_css %} {{ super() }} {% endblock %} {% macro show_user(user) -%}

User {{ user.email }} with ID {{ user.id }}.

{% if user.activated %} {% else %} {% endif %} {% if user.disabled %} {% else %} {% endif %}
User ID Email Verified Status Paid Premium
{{ user.id }} {{ user.email }} ActivatedPendingDisabledEnabled{{ "yes" if user.is_paid() else "No" }} {{ "yes" if user.is_premium() else "No" }}
{%- endmacro %} {% macro show_verification(title, expected, errors) -%} {% if not expected %}
  • {{ title }}
  • {% else %}
  • {{ title }}

    Expected: {{ expected.recommended }}

    Allowed:

    Current response:

    {% for error in errors %} {% endfor %}
  • {% endif %} {%- endmacro %} {% macro show_mx_verification(title, expected, errors) -%} {% if not expected %}
  • {{ title }}
  • {% else %}
  • {{ title }}
  • {% endif %} {%- endmacro %} {% macro show_domain(domain_with_data) -%}

    Domain {{ domain_with_data.domain.domain }}

    {% set domain = domain_with_data.domain %}
      {{ show_verification("Ownership", domain_with_data.ownership_expected, domain_with_data.ownership_validation.errors) }} {{ show_mx_verification("MX", domain_with_data.mx_expected, domain_with_data.mx_validation.errors) }} {{ show_verification("SPF", domain_with_data.spf_expected, domain_with_data.spf_validation.errors) }} {% for dkim_domain in domain_with_data.dkim_expected %} {{ show_verification("DKIM {}.{}".format(dkim_domain, domain.domain) , domain_with_data.dkim_expected[dkim_domain], [domain_with_data.dkim_validation.get(dkim_domain+"."+domain.domain,'')]) }} {% endfor %}
    {%- endmacro %} {% block body %}
    {% if data.no_match and query %} {% endif %} {% if data.user %}

    Found User {{ data.user.email }}

    {{ show_user(data.user) }}
    {% endif %}
    {% for domain_with_data in data.domains %}{{ show_domain(domain_with_data) }}{% endfor %}
    {% endblock %}