{% extends "mvp/account/overview.html" %}
{% load i18n mvp_accounts %}
{% comment %}
`url … as` leaves the variable empty instead of raising, so a page allauth
has not routed (phone numbers off, or no allauth) gets no card.
{% endcomment %}
{% block account.cards %}
{{ block.super }}
{% url "account_email" as email_url %}
{% if email_url %}
{% trans "Add, verify and choose your email addresses." %}
{% endif %}
{% url "account_change_password" as password_url %}
{% if password_url %}
{% trans "Change or set the password you sign in with." %}
{% endif %}
{% url "account_change_phone" as phone_url %}
{% if phone_url %}
{% trans "Add or change your phone number." %}
{% endif %}
{% url "socialaccount_connections" as connections_url %}
{% if connections_url %}
{% trans "Connect or remove the accounts you sign in with." %}
{% endif %}
{% url "mfa_index" as two_factor_url %}
{% if two_factor_url %}
{% trans "Add a second step to signing in." %}
{% endif %}
{% url "usersessions_list" as sessions_url %}
{% if sessions_url %}
{% trans "See where you're signed in and sign out elsewhere." %}
{% endif %}
{% url "account_api_tokens" as tokens_url %}
{% may_use_api_tokens as tokens_allowed %}
{% if tokens_url and tokens_allowed %}
{% trans "Create and revoke tokens for scripts and tools." %}
{% endif %}
{% endblock account.cards %}