Skip to content

Commit

Permalink
fix: use {% element p %} instead of raw <p> HTML tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
d9pouces committed Aug 23, 2024
1 parent b242ded commit d0bdeb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions allauth/templates/mfa/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
{% endslot %}
{% slot body %}
{% if authenticators.webauthn|length %}
<p>
{% element p %}
{% blocktranslate count count=authenticators.webauthn|length %}You have added {{ count }} security key.{% plural %}You have added {{ count }} security keys.{% endblocktranslate %}
</p>
{% endelement %}
{% else %}
<p>{% translate "No security keys have been added." %}</p>
{% element p %}{% translate "No security keys have been added." %}{% endelement %}
{% endif %}
{% endslot %}
{% slot actions %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% element h1 %}
{% trans "Remove Security Key" %}
{% endelement %}
<p>{% blocktranslate %}Are you sure you want to remove this security key?{% endblocktranslate %}</p>
{% 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 %}
Expand Down
2 changes: 1 addition & 1 deletion allauth/templates/mfa/webauthn/authenticator_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% trans "Security Keys" %}
{% endelement %}
{% if authenticators|length == 0 %}
<p>{% blocktranslate %}No security keys have been added.{% endblocktranslate %}</p>
{% element p %}{% blocktranslate %}No security keys have been added.{% endblocktranslate %}{% endelement %}
{% else %}
{% element table %}
{% element thead %}
Expand Down

0 comments on commit d0bdeb5

Please sign in to comment.