-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #731 from eresearchqut/ERP-531_Remove_whitespace
[ERP-531] Remove whitespace and indentation from final sent email
- Loading branch information
Showing
1 changed file
with
12 additions
and
17 deletions.
There are no files selected for viewing
29 changes: 12 additions & 17 deletions
29
rdrf/rdrf/templates/registration/password_reset_email.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |