{# Domain Owner Summary #}
{{ user_summary_card(domain.user) }}
{# Domain Information + Actions Row #}
{# Domain Information - 3/4 width #}
{# Row 1: Details & Settings #}
Details
| ID: |
{{ domain.id }}
|
| Domain: |
{{ domain.domain }}{{ copy_btn(domain.domain) }}
|
{% if domain.name %}
| Name: |
{{ domain.name }} |
{% endif %}
| Created: |
{{ domain.created_at.strftime("%Y-%m-%d %H:%M") }} |
| Aliases: |
{{ helper.alias_count(domain) }}
|
Settings
| Catch-All: |
{{ badge_status(domain.catch_all, 'Enabled', 'Disabled', 'info', 'secondary') }} |
| Random Prefix: |
{{ badge_status(domain.random_prefix_generation, 'Enabled', 'Disabled', 'info', 'secondary') }} |
| SL Subdomain: |
{{ badge_status(domain.is_sl_subdomain, 'Yes', 'No', 'info', 'secondary') }} |
| Failed Checks: |
{% if domain.nb_failed_checks > 0 %}
{{ domain.nb_failed_checks }}
{% else %}
0
{% endif %}
|
{# Row 2: Verification Status #}
Verification Status {{ verification_summary(domain) }}
{{ verification_badge(domain.ownership_verified, 'Ownership') }}
{{ verification_badge(domain.verified, 'MX') }}
{{ verification_badge(domain.spf_verified, 'SPF') }}
{{ verification_badge(domain.dkim_verified, 'DKIM') }}
{{ verification_badge(domain.dmarc_verified, 'DMARC') }}
{# Admin Actions - 1/4 width #}
{% if not domain.pending_deletion %}
{# Spacer to push delete to bottom #}
{# Delete Domain - fixed at bottom like a footer #}
{% else %}
{% endif %}
{# DNS Records Section #}
{{ dns_record_display('Ownership (TXT)', domain_data.ownership_expected, domain_data.ownership_validation.errors if domain_data.ownership_validation else []) }}
{{ dns_record_display('SPF (TXT)', domain_data.spf_expected, domain_data.spf_validation.errors if domain_data.spf_validation else []) }}
{{ mx_record_display(domain_data.mx_expected, domain_data.mx_validation.errors if domain_data.mx_validation else []) }}
{{ dkim_records_display(domain, domain_data.dkim_expected, domain_data.dkim_validation) }}
{# Aliases Section #}
{% set alias_count = helper.alias_count(domain) %}
{% set aliases = helper.alias_list(domain) %}
{% set deleted_alias_count = helper.deleted_alias_count(domain) %}
{% set deleted_aliases = helper.deleted_alias_list(domain) %}
{% if aliases %}
| ID |
Email |
Enabled |
Created |
{% for alias in aliases %}
{{ alias.id }}
|
{{ alias.email }}
|
{{ badge_status(alias.enabled, 'Yes', 'No', 'success', 'danger') }} |
{{ alias.created_at.strftime("%Y-%m-%d %H:%M") }} |
{% endfor %}
{% else %}
No aliases
{% endif %}
{% if deleted_aliases %}
| ID |
Email |
Deleted At |
{% for deleted in deleted_aliases %}
{{ deleted.id }}
|
{{ deleted.email }}
|
{{ deleted.created_at.strftime("%Y-%m-%d %H:%M") }} |
{% endfor %}
{% else %}
No deleted aliases
{% endif %}