{% extends "mfa/webauthn/base.html" %} {% load i18n %} {% load static %} {% load allauth %} {% load humanize %} {% block content %}

{% trans "Security Keys" %}

{% url 'mfa_add_webauthn' as add_url %} {% translate "Add" %}
{% if authenticators|length == 0 %}

{% blocktranslate %}No security keys have been added.{% endblocktranslate %}

{% else %}
{% for authenticator in authenticators %} {% endfor %}
{% translate "Key" %} {% translate "Usage" %} {% translate "Actions" %}
{{ authenticator }} {% if authenticator.wrap.is_passwordless is True %} {% translate "Passkey" %} {% elif authenticator.wrap.is_passwordless is False %} {% translate "Security key" %} {% else %} {% translate "Unspecified" %} {% endif %}
{% blocktranslate with created_at=authenticator.created_at|date:"SHORT_DATE_FORMAT" %}Added on {{ created_at }}{% endblocktranslate %}. {% if authenticator.last_used_at %}
{% blocktranslate with last_used=authenticator.last_used_at|naturaltime %}Last used {{ last_used }}{% endblocktranslate %} {% else %}
Not used. {% endif %}
{% url 'mfa_edit_webauthn' pk=authenticator.pk as edit_url %} {% translate "Edit" %} {% url 'mfa_remove_webauthn' pk=authenticator.pk as remove_url %} {% translate "Remove" %}
{% endif %}
{% endblock %}