Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Refactor footers in plain-text emails template

Aleksander Spyraaa87555ae180
diff --git a/templates/templated_email/account/account_delete.email b/templates/templated_email/account/account_delete.email
index b86171faf1..0439fd5e00 100644
--- a/templates/templated_email/account/account_delete.email
+++ b/templates/templated_email/account/account_delete.email
@@ -16,11 +16,12 @@ Please note that this action is permanent and cannot be reversed.
{{ delete_url }}
+{% endblocktrans %}
+{% blocktrans trimmed context "Base email text" %}
This is an automatically generated email, please do not reply.
-
-{% blocktrans context "Account delete reset e-mail text" %}
-Sincerely,
-{{ site_name }}
+{% endblocktrans %}
+{% blocktrans trimmed context "Base email footer" %}
+Sincerely, {{ site_name }}
{% endblocktrans %}
{% endblock %}
diff --git a/templates/templated_email/account/password_reset.email b/templates/templated_email/account/password_reset.email
index 10ae382451..39e6dd688c 100644
--- a/templates/templated_email/account/password_reset.email
+++ b/templates/templated_email/account/password_reset.email
@@ -14,11 +14,12 @@ It can be safely ignored if you did not request a password reset. Click the link
{{ reset_url }}
+{% endblocktrans %}
+{% blocktrans trimmed context "Base email text" %}
This is an automatically generated email, please do not reply.
-
-{% blocktrans context "Password reset e-mail text" %}
-Sincerely,
-{{ site_name }}
+{% endblocktrans %}
+{% blocktrans trimmed context "Base email footer" %}
+Sincerely, {{ site_name }}
{% endblocktrans %}
{% endblock %}
diff --git a/templates/templated_email/dashboard/customer/set_password.email b/templates/templated_email/dashboard/customer/set_password.email
index 8ec7121a1e..d55176eeaa 100644
--- a/templates/templated_email/dashboard/customer/set_password.email
+++ b/templates/templated_email/dashboard/customer/set_password.email
@@ -11,9 +11,12 @@ Click the link below to reset your password.
{{ password_set_url }}
-{% blocktrans context "Set password for customer e-mail text" %}
+{% blocktrans trimmed context "Base email text" %}
This is an automatically generated email, please do not reply.
{% endblocktrans %}
+{% blocktrans trimmed context "Base email footer" %}
+Sincerely, {{ site_name }}
+{% endblocktrans %}
{% endblock %}
{% block html %}
diff --git a/templates/templated_email/dashboard/staff/promote_customer.email b/templates/templated_email/dashboard/staff/promote_customer.email
index 198cedc9b1..b5f150fe02 100644
--- a/templates/templated_email/dashboard/staff/promote_customer.email
+++ b/templates/templated_email/dashboard/staff/promote_customer.email
@@ -7,9 +7,12 @@ Hi!
You're receiving this e-mail because you have been promoted to staff member at {{ domain }}.{% endblocktrans %}
-{% blocktrans context "Promote customer to staff member confirmation e-mail text" %}
+{% blocktrans trimmed context "Base email text" %}
This is an automatically generated email, please do not reply.
{% endblocktrans %}
+{% blocktrans trimmed context "Base email footer" %}
+Sincerely, {{ site_name }}
+{% endblocktrans %}
{% endblock %}
{% block html %}
diff --git a/templates/templated_email/dashboard/staff/set_password.email b/templates/templated_email/dashboard/staff/set_password.email
index 511117b0a2..233ff67dce 100644
--- a/templates/templated_email/dashboard/staff/set_password.email
+++ b/templates/templated_email/dashboard/staff/set_password.email
@@ -11,9 +11,12 @@ Click the link below to reset your password.
{{ password_set_url }}
-{% blocktrans context "Set password for staff member e-mail text" %}
+{% blocktrans trimmed context "Base email text" %}
This is an automatically generated email, please do not reply.
{% endblocktrans %}
+{% blocktrans trimmed context "Base email footer" %}
+Sincerely, {{ site_name }}
+{% endblocktrans %}
{% endblock %}
{% block html %}
diff --git a/templates/templated_email/order/confirm_fulfillment.email b/templates/templated_email/order/confirm_fulfillment.email
index c643cf1f64..9cdf336313 100644
--- a/templates/templated_email/order/confirm_fulfillment.email
+++ b/templates/templated_email/order/confirm_fulfillment.email
@@ -22,11 +22,11 @@ You can track your shipment with {{ tracking_number }} code.
{{ line.quantity }} x {{ line.order_line.product_name }}
{% endfor %}
-{% blocktrans context "Fulfillment confirmation email text" %}
+{% blocktrans trimmed context "Base email text" %}
This is an automatically generated email, please do not reply.
-
-Sincerely,
-{{ site_name }}
+{% endblocktrans %}
+{% blocktrans trimmed context "Base email footer" %}
+Sincerely, {{ site_name }}
{% endblocktrans %}
{% endblock %}
diff --git a/templates/templated_email/order/confirm_order.email b/templates/templated_email/order/confirm_order.email
index 47215ef752..b73c963af4 100644
--- a/templates/templated_email/order/confirm_order.email
+++ b/templates/templated_email/order/confirm_order.email
@@ -28,11 +28,11 @@ Thank you for your order. Below is the list of ordered products. To see your pay
{% trans "Shipping address" context "Order confirmation e-mail shipping address" %}
{% if order.shipping_address %}{{ order.shipping_address }}{% else %}{% trans "No shipping required" context "Order confirmation e-mail text" %}{% endif %}
-{% blocktrans context "Order confirmation e-mail text" %}
-This is an automatically generated e-mail, please do not reply.
-
-Sincerely,
-{{ site_name }}
+{% blocktrans trimmed context "Base email text" %}
+This is an automatically generated email, please do not reply.
+{% endblocktrans %}
+{% blocktrans trimmed context "Base email footer" %}
+Sincerely, {{ site_name }}
{% endblocktrans %}
{% endblock %}
diff --git a/templates/templated_email/order/payment/confirm_payment.email b/templates/templated_email/order/payment/confirm_payment.email
index 04ef41fb24..5c9384e817 100644
--- a/templates/templated_email/order/payment/confirm_payment.email
+++ b/templates/templated_email/order/payment/confirm_payment.email
@@ -10,11 +10,12 @@ Hi!
Thank you for your payment. To see your payment details please visit:
{{ order_details_url }}
-
+{% endblocktrans %}
+{% blocktrans trimmed context "Base email text" %}
This is an automatically generated email, please do not reply.
-
-Sincerely,
-{{ site_name }}
+{% endblocktrans %}
+{% blocktrans trimmed context "Base email footer" %}
+Sincerely, {{ site_name }}
{% endblocktrans %}
{% endblock %}
diff --git a/templates/templated_email/order/update_fulfillment.email b/templates/templated_email/order/update_fulfillment.email
index cd46ae40b2..9c2284bb3e 100644
--- a/templates/templated_email/order/update_fulfillment.email
+++ b/templates/templated_email/order/update_fulfillment.email
@@ -22,11 +22,11 @@ You can track your shipment with {{ tracking_number }} code.
{{ line.quantity }} x {{ line.order_line.product_name }}
{% endfor %}
-{% blocktrans context "Fulfillment update email text" %}
+{% blocktrans trimmed context "Base email text" %}
This is an automatically generated email, please do not reply.
-
-Sincerely,
-{{ site_name }}
+{% endblocktrans %}
+{% blocktrans trimmed context "Base email footer" %}
+Sincerely, {{ site_name }}
{% endblocktrans %}
{% endblock %}