Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move plain-text emails footer and header to the separate files
Aleksander Spyraaa74ad096ad5
diff --git a/templates/templated_email/account/account_delete.email b/templates/templated_email/account/account_delete.emailindex c93f1dd045..3fc934dc2e 100644--- a/templates/templated_email/account/account_delete.email+++ b/templates/templated_email/account/account_delete.email@@ -5,7 +5,7 @@{% endblock %}{% block plain %}-{% trans "Hi!" context "Standard e-mail greeting" %}+{% include 'templated_email/shared/_header.email' %}{% blocktrans context "Account delete reset e-mail text" %}You're receiving this e-mail because you or someone else has requested a deletion of your user account at {{ domain }}.Click the link below to delete your account.@@ -16,12 +16,7 @@ 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 e-mail, please do not reply.-{% endblocktrans %}-{% blocktrans trimmed context "Base email footer" %}-Sincerely, {{ site_name }}-{% endblocktrans %}+{% include 'templated_email/shared/_footer.email' %}{% endblock %}{% block html %}diff --git a/templates/templated_email/account/password_reset.email b/templates/templated_email/account/password_reset.emailindex 494d1cb482..13880d0f02 100644--- a/templates/templated_email/account/password_reset.email+++ b/templates/templated_email/account/password_reset.email@@ -5,7 +5,7 @@{% endblock %}{% block plain %}-{% trans "Hi!" context "Standard e-mail greeting" %}+{% include 'templated_email/shared/_header.email' %}{% blocktrans context "Password reset e-mail text" %}You're receiving this e-mail because you or someone else has requested a password for your user account at {{ domain }}.It can be safely ignored if you did not request a password reset. Click the link below to reset your password.@@ -14,12 +14,7 @@ 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 e-mail, please do not reply.-{% endblocktrans %}-{% blocktrans trimmed context "Base email footer" %}-Sincerely, {{ site_name }}-{% endblocktrans %}+{% include 'templated_email/shared/_footer.email' %}{% endblock %}{% block html %}diff --git a/templates/templated_email/dashboard/customer/set_password.email b/templates/templated_email/dashboard/customer/set_password.emailindex 7f53013755..a7e499e8ce 100644--- a/templates/templated_email/dashboard/customer/set_password.email+++ b/templates/templated_email/dashboard/customer/set_password.email@@ -2,7 +2,7 @@{% block subject %}{% blocktrans context "Set password for customer e-mail title" %}Hello from {{ site_name }}!{% endblocktrans %}{% endblock %}{% block plain %}-{% trans "Hi!" context "Standard e-mail greeting" %}+{% include 'templated_email/shared/_header.email' %}{% blocktrans context "Set password for customer e-mail text" %}You're receiving this e-mail because you have to set password for your customer account at {{ domain }}.Click the link below to reset your password.@@ -10,12 +10,7 @@ Click the link below to reset your password.{{ password_set_url }}-{% blocktrans trimmed context "Base email text" %}-This is an automatically generated e-mail, please do not reply.-{% endblocktrans %}-{% blocktrans trimmed context "Base email footer" %}-Sincerely, {{ site_name }}-{% endblocktrans %}+{% include 'templated_email/shared/_footer.email' %}{% endblock %}{% block html %}diff --git a/templates/templated_email/dashboard/staff/promote_customer.email b/templates/templated_email/dashboard/staff/promote_customer.emailindex e938676f61..63ef9d6918 100644--- a/templates/templated_email/dashboard/staff/promote_customer.email+++ b/templates/templated_email/dashboard/staff/promote_customer.email@@ -2,16 +2,11 @@{% block subject %}{% blocktrans %}Hello from {{ site_name }}!{% endblocktrans %}{% endblock %}{% block plain %}-{% trans "Hi!" context "Standard e-mail greeting" %}+{% include 'templated_email/shared/_header.email' %}{% blocktrans context "Promote customer to staff member confirmation e-mail text" %}You're receiving this e-mail because you have been promoted to staff member at {{ domain }}.{% endblocktrans %}-{% blocktrans trimmed context "Base email text" %}-This is an automatically generated e-mail, please do not reply.-{% endblocktrans %}-{% blocktrans trimmed context "Base email footer" %}-Sincerely, {{ site_name }}-{% endblocktrans %}+{% include 'templated_email/shared/_footer.email' %}{% endblock %}{% block html %}diff --git a/templates/templated_email/dashboard/staff/set_password.email b/templates/templated_email/dashboard/staff/set_password.emailindex d33f10c893..6d2830b37b 100644--- a/templates/templated_email/dashboard/staff/set_password.email+++ b/templates/templated_email/dashboard/staff/set_password.email@@ -2,7 +2,7 @@{% block subject %}{% blocktrans context "Set password for staff member e-mail title" %}Hello from {{ site_name }}!{% endblocktrans %}{% endblock %}{% block plain %}-{% trans "Hi!" context "Standard e-mail greeting" %}+{% include 'templated_email/shared/_header.email' %}{% blocktrans context "Set password for staff member e-mail text" %}You're receiving this e-mail because you have to set password for your staff member account at {{ domain }}.Click the link below to reset your password.@@ -10,12 +10,7 @@ Click the link below to reset your password.{{ password_set_url }}-{% blocktrans trimmed context "Base email text" %}-This is an automatically generated e-mail, please do not reply.-{% endblocktrans %}-{% blocktrans trimmed context "Base email footer" %}-Sincerely, {{ site_name }}-{% endblocktrans %}+{% include 'templated_email/shared/_footer.email' %}{% endblock %}{% block html %}diff --git a/templates/templated_email/order/confirm_fulfillment.email b/templates/templated_email/order/confirm_fulfillment.emailindex 0b6673185b..f181be81b1 100644--- a/templates/templated_email/order/confirm_fulfillment.email+++ b/templates/templated_email/order/confirm_fulfillment.email@@ -7,7 +7,7 @@{% endblock %}{% block plain %}-{% trans "Hi!" context "Standard e-mail greeting" %}+{% include 'templated_email/shared/_header.email' %}{% blocktrans context "Fulfillment confirmation email text" %}Thank you for your order. Below is the list of shipped products.{% endblocktrans %}@@ -21,12 +21,7 @@ You can track your shipment with {{ tracking_number }} code.{{ line.quantity }} x {{ line.order_line.product_name }}{% endfor %}-{% blocktrans trimmed context "Base email text" %}-This is an automatically generated e-mail, please do not reply.-{% endblocktrans %}-{% blocktrans trimmed context "Base email footer" %}-Sincerely, {{ site_name }}-{% endblocktrans %}+{% include 'templated_email/shared/_footer.email' %}{% endblock %}{% block html %}diff --git a/templates/templated_email/order/confirm_order.email b/templates/templated_email/order/confirm_order.emailindex ba99ceda2e..0c7a6f3b40 100644--- a/templates/templated_email/order/confirm_order.email+++ b/templates/templated_email/order/confirm_order.email@@ -7,7 +7,7 @@{% endblock %}{% block plain %}-{% trans "Hi!" context "Standard e-mail greeting" %}+{% include 'templated_email/shared/_header.email' %}{% blocktrans context "Order confirmation e-mail text" %}Thank you for your order. Below is the list of ordered products. To see your payment details please visit:{{ order_details_url }}{% endblocktrans %}@@ -27,12 +27,7 @@ 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 trimmed context "Base email text" %}-This is an automatically generated e-mail, please do not reply.-{% endblocktrans %}-{% blocktrans trimmed context "Base email footer" %}-Sincerely, {{ site_name }}-{% endblocktrans %}+{% include 'templated_email/shared/_footer.email' %}{% endblock %}{% block html %}diff --git a/templates/templated_email/order/payment/confirm_payment.email b/templates/templated_email/order/payment/confirm_payment.emailindex 5460e02b83..22075bef9c 100644--- a/templates/templated_email/order/payment/confirm_payment.email+++ b/templates/templated_email/order/payment/confirm_payment.email@@ -5,17 +5,12 @@{% endblock %}{% block plain %}-{% trans "Hi!" context "Standard e-mail greeting" %}+{% include 'templated_email/shared/_header.email' %}{% blocktrans context "Payment confirmation email text" %}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 e-mail, please do not reply.-{% endblocktrans %}-{% blocktrans trimmed context "Base email footer" %}-Sincerely, {{ site_name }}-{% endblocktrans %}+{% include 'templated_email/shared/_footer.email' %}{% endblock %}{% block html %}diff --git a/templates/templated_email/order/update_fulfillment.email b/templates/templated_email/order/update_fulfillment.emailindex 7827e931d0..17cbdbdb78 100644--- a/templates/templated_email/order/update_fulfillment.email+++ b/templates/templated_email/order/update_fulfillment.email@@ -7,7 +7,7 @@{% endblock %}{% block plain %}-{% trans "Hi!" context "Standard e-mail greeting" %}+{% include 'templated_email/shared/_header.email' %}{% blocktrans context "Fulfillment update email text" %}Your shipping status has been updated. Below is the list of ordered products that have been updated with new tracking number.{% endblocktrans %}@@ -21,12 +21,7 @@ You can track your shipment with {{ tracking_number }} code.{{ line.quantity }} x {{ line.order_line.product_name }}{% endfor %}-{% blocktrans trimmed context "Base email text" %}-This is an automatically generated e-mail, please do not reply.-{% endblocktrans %}-{% blocktrans trimmed context "Base email footer" %}-Sincerely, {{ site_name }}-{% endblocktrans %}+{% include 'templated_email/shared/_footer.email' %}{% endblock %}{% block html %}diff --git a/templates/templated_email/shared/_footer.email b/templates/templated_email/shared/_footer.emailnew file mode 100644index 0000000000..71d1b51d2e--- /dev/null+++ b/templates/templated_email/shared/_footer.email@@ -0,0 +1,7 @@+{% load i18n %}+{% blocktrans trimmed context "Base email text" %}+This is an automatically generated e-mail, please do not reply.+{% endblocktrans %}+{% blocktrans trimmed context "Base email footer" %}+Sincerely, {{ site_name }}+{% endblocktrans %}\ No newline at end of filediff --git a/templates/templated_email/shared/_header.email b/templates/templated_email/shared/_header.emailnew file mode 100644index 0000000000..6b27723796--- /dev/null+++ b/templates/templated_email/shared/_header.email@@ -0,0 +1,2 @@+{% load i18n %}+{% trans "Hi!" context "Standard e-mail greeting" %}\ No newline at end of file