{% extends 'admin/master.html' %}
{% macro show_user(query, user) -%}
User {{ user.email }} with ID {{ user.id }}.
{% set pu = helper.partner_user(user) %}
| User ID |
Email |
Verified |
Status |
Pending deletion |
Paid |
Premium |
Subscription |
Created At |
Updated At |
Subdomain Quota |
Connected with Proton account |
{% if user.delete_on %}Actions | {% endif %}
| {{ user.id }} |
{{ user.email }}
|
{% if user.activated %}
Activated |
{% else %}
Pending |
{% endif %}
{% if user.disabled %}
Disabled |
{% else %}
Enabled
|
{% endif %}
{% if user.delete_on %}
{{ user.delete_on }} |
{% else %}
None |
{% endif %}
{{ "yes" if user.is_paid() else "No" }} |
{{ "yes" if user.is_premium() else "No" }} |
{{ user.get_active_subscription() }} |
{{ user.created_at }} |
{{ user.updated_at }} |
|
{% if pu %}
{{ pu.partner_email }}
|
{% else %}
No |
{% endif %}
{% if user.delete_on %}
|
{% endif %}
| Mailbox ID |
Email |
Verified |
Created At |
{% for mailbox in helper.mailbox_list(user) %}
| {{ mailbox.id }} |
{{ mailbox.email }}
|
{{ "Yes" if mailbox.verified else "No" }} |
{{ mailbox.created_at }} |
{% endfor %}
{% endmacro %}
{% block body %}
{% if data.no_match and query %}
No mailbox found for {{ query }}
{% endif %}
{% for user in data.users %}
Found user {{ user.email }}
{{ show_user(query, user) }}
{% endfor %}
{% endblock %}