Skip to content

Commit

Permalink
Merge pull request #731 from eresearchqut/ERP-531_Remove_whitespace
Browse files Browse the repository at this point in the history
[ERP-531] Remove whitespace and indentation from final sent email
  • Loading branch information
ppettitau authored Jan 27, 2025
2 parents c132278 + 6eae381 commit e2210a4
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions rdrf/rdrf/templates/registration/password_reset_email.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
{# NB All whitespace and indentation are rendered in the final email. #}
{% load i18n full_url password_reset_timeout %}{% autoescape off %}
{% trans "Hello Mr/Ms" %} {{ user.last_name }},
{% trans "Hello Mr/Ms" %} {{ user.last_name }},

{% blocktrans trimmed %}
You're receiving this email because you requested a password reset for your user account.
{% endblocktrans %}
{% blocktrans trimmed %}You're receiving this email because you requested a password reset for your user account.{% endblocktrans %}

{% trans "Please go to the following page and choose a new password:" %}
{% block reset_link %}
{% full_url 'password_reset_confirm' uidb64=uid token=token %}
{% endblock %}
{% trans "Your username, in case you've forgotten:" %} {{ user.get_username }}
{% trans "Please go to the following page and choose a new password:" %}
{% block reset_link %}{% full_url 'password_reset_confirm' uidb64=uid token=token %}{% endblock %}

{% timeuntil_expiry as timeuntil_expiry %}
{% if timeuntil_expiry %}
{% blocktrans trimmed with timeuntil_expiry=timeuntil_expiry %}
Note that, for security reasons, this link is only valid for {{ timeuntil_expiry }}.
{% endblocktrans %}
{% endif %}
{% trans "Your username, in case you've forgotten:" %} {{ user.get_username }}
{% timeuntil_expiry as timeuntil_expiry %}
{% if timeuntil_expiry %}
{% blocktrans trimmed with timeuntil_expiry=timeuntil_expiry %}Note that, for security reasons, this link is only valid for {{ timeuntil_expiry }}.{% endblocktrans %}
{% endif %}

{% trans "Thanks for using our site!" %}
{% trans "Thanks for using our site!" %}

{% blocktrans %}The {{ site_name }} team.{% endblocktrans %}
{% blocktrans %}The {{ site_name }} team.{% endblocktrans %}

{% endautoescape %}

0 comments on commit e2210a4

Please sign in to comment.