diff --git a/allauth/templates/mfa/index.html b/allauth/templates/mfa/index.html index 3fd1e7497e..40afd6d17e 100644 --- a/allauth/templates/mfa/index.html +++ b/allauth/templates/mfa/index.html @@ -46,11 +46,11 @@ {% endslot %} {% slot body %} {% if authenticators.webauthn|length %} -

+ {% element p %} {% blocktranslate count count=authenticators.webauthn|length %}You have added {{ count }} security key.{% plural %}You have added {{ count }} security keys.{% endblocktranslate %} -

+ {% endelement %} {% else %} -

{% translate "No security keys have been added." %}

+ {% element p %}{% translate "No security keys have been added." %}{% endelement %} {% endif %} {% endslot %} {% slot actions %} diff --git a/allauth/templates/mfa/webauthn/authenticator_confirm_delete.html b/allauth/templates/mfa/webauthn/authenticator_confirm_delete.html index 38922e5482..2e0bba570a 100644 --- a/allauth/templates/mfa/webauthn/authenticator_confirm_delete.html +++ b/allauth/templates/mfa/webauthn/authenticator_confirm_delete.html @@ -5,7 +5,7 @@ {% element h1 %} {% trans "Remove Security Key" %} {% endelement %} -

{% blocktranslate %}Are you sure you want to remove this security key?{% endblocktranslate %}

+ {% element p %}{% blocktranslate %}Are you sure you want to remove this security key?{% endblocktranslate %}{% endelement %} {% url 'mfa_remove_webauthn' pk=authenticator.pk as action_url %} {% element form method="post" action=action_url no_visible_fields=True %} {% slot actions %} diff --git a/allauth/templates/mfa/webauthn/authenticator_list.html b/allauth/templates/mfa/webauthn/authenticator_list.html index 564edda8e0..b7a1a8a7a0 100644 --- a/allauth/templates/mfa/webauthn/authenticator_list.html +++ b/allauth/templates/mfa/webauthn/authenticator_list.html @@ -8,7 +8,7 @@ {% trans "Security Keys" %} {% endelement %} {% if authenticators|length == 0 %} -

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

+ {% element p %}{% blocktranslate %}No security keys have been added.{% endblocktranslate %}{% endelement %} {% else %} {% element table %} {% element thead %}