Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(templates/email): Extracted base template
- Loading branch information
Showing
3 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name %}Hello from {{ site_name }}!{% endblocktrans %} | ||
|
||
{% block content %}{% endblock %} | ||
|
||
{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Thank you for using {{ site_name }}! | ||
{{ site_domain }}{% endblocktrans %} | ||
{% endautoescape %} |
12 changes: 5 additions & 7 deletions
12
allauth/templates/account/email/email_confirmation_message.txt
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,9 +1,7 @@ | ||
{% load account %}{% user_display user as user_display %}{% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Hello from {{ site_name }}! | ||
{% extends "account/email/base_message.txt" %} | ||
{% load account %} | ||
{% load i18n %} | ||
|
||
You're receiving this e-mail because user {{ user_display }} has given your e-mail address to register an account on {{ site_domain }}. | ||
{% block content %}{% autoescape off %}{% user_display user as user_display %}{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}You're receiving this e-mail because user {{ user_display }} has given your e-mail address to register an account on {{ site_domain }}. | ||
|
||
To confirm this is correct, go to {{ activate_url }} | ||
{% endblocktrans %} | ||
{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Thank you from {{ site_name }}! | ||
{{ site_domain }}{% endblocktrans %} | ||
{% endautoescape %} | ||
To confirm this is correct, go to {{ activate_url }}{% endblocktrans %}{% endautoescape %}{% endblock %} |
13 changes: 5 additions & 8 deletions
13
allauth/templates/account/email/password_reset_key_message.txt
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,12 +1,9 @@ | ||
{% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Hello from {{ site_name }}! | ||
{% extends "account/email/base_message.txt" %} | ||
{% load i18n %} | ||
|
||
You're receiving this e-mail because you or someone else has requested a password for your user account. | ||
{% block content %}{% autoescape off %}{% blocktrans %}You're receiving this e-mail because you or someone else has requested a password for your user account. | ||
It can be safely ignored if you did not request a password reset. Click the link below to reset your password.{% endblocktrans %} | ||
|
||
{{ password_reset_url }} | ||
{{ password_reset_url }}{% if username %} | ||
|
||
{% if username %}{% blocktrans %}In case you forgot, your username is {{ username }}.{% endblocktrans %} | ||
|
||
{% endif %}{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Thank you for using {{ site_name }}! | ||
{{ site_domain }}{% endblocktrans %} | ||
{% endautoescape %} | ||
{% blocktrans %}In case you forgot, your username is {{ username }}.{% endblocktrans %}{% endif %}{% endautoescape %}{% endblock %} |