From b6b6822c31fedf80c24b84b279d9f4b87c65d1e7 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 4 Jun 2024 11:31:46 +0200 Subject: [PATCH] :sparkles: Abbreviate profile name on emails --- backend/resources/app/email/change-email/en.html | 4 ++-- backend/resources/app/email/change-email/en.txt | 2 +- backend/resources/app/email/feedback/en.html | 4 ++-- backend/resources/app/email/invite-to-team/en.html | 4 ++-- backend/resources/app/email/invite-to-team/en.txt | 2 +- backend/resources/app/email/password-recovery/en.html | 4 ++-- backend/resources/app/email/password-recovery/en.txt | 2 +- backend/resources/app/email/register/en.html | 2 +- backend/resources/app/email/register/en.txt | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/backend/resources/app/email/change-email/en.html b/backend/resources/app/email/change-email/en.html index ad95fa641..d63efa72f 100644 --- a/backend/resources/app/email/change-email/en.html +++ b/backend/resources/app/email/change-email/en.html @@ -168,7 +168,7 @@ @@ -475,4 +475,4 @@ - \ No newline at end of file + diff --git a/backend/resources/app/email/change-email/en.txt b/backend/resources/app/email/change-email/en.txt index 0a688cb0d..09d6e84a5 100644 --- a/backend/resources/app/email/change-email/en.txt +++ b/backend/resources/app/email/change-email/en.txt @@ -1,4 +1,4 @@ -Hello {{name}}! +Hello {{name|abbreviate:25}}! We received a request to change your current email to {{ pending-email }}. diff --git a/backend/resources/app/email/feedback/en.html b/backend/resources/app/email/feedback/en.html index 478a3cc3c..6de9cda62 100644 --- a/backend/resources/app/email/feedback/en.html +++ b/backend/resources/app/email/feedback/en.html @@ -11,7 +11,7 @@ {% if profile %} Name: - {{profile.fullname}} + {{profile.fullname|abbreviate:25}}
@@ -34,7 +34,7 @@

Subject:
- {{subject}} + {{subject|abbreviate:300}}

diff --git a/backend/resources/app/email/invite-to-team/en.html b/backend/resources/app/email/invite-to-team/en.html index 881af47f4..93763c106 100644 --- a/backend/resources/app/email/invite-to-team/en.html +++ b/backend/resources/app/email/invite-to-team/en.html @@ -173,7 +173,7 @@

@@ -465,4 +465,4 @@ - \ No newline at end of file + diff --git a/backend/resources/app/email/invite-to-team/en.txt b/backend/resources/app/email/invite-to-team/en.txt index ea85c084f..55e61d8e2 100644 --- a/backend/resources/app/email/invite-to-team/en.txt +++ b/backend/resources/app/email/invite-to-team/en.txt @@ -1,6 +1,6 @@ Hello! -{{invited-by}} has invited you to join the team “{{ team }}”. +{{invited-by|abbreviate:25}} has invited you to join the team “{{ team|abbreviate:25 }}”. Accept invitation using this link: diff --git a/backend/resources/app/email/password-recovery/en.html b/backend/resources/app/email/password-recovery/en.html index 14fe1a5f2..ed18ef12c 100644 --- a/backend/resources/app/email/password-recovery/en.html +++ b/backend/resources/app/email/password-recovery/en.html @@ -168,7 +168,7 @@
-
Hello {{name}}!
+
Hello {{name|abbreviate:25}}!
-
{{invited-by}} has invited you to join the team “{{ team }}”.
+
{{invited-by|abbreviate:25}} has invited you to join the team “{{ team|abbreviate:25 }}”.
@@ -470,4 +470,4 @@ - \ No newline at end of file + diff --git a/backend/resources/app/email/password-recovery/en.txt b/backend/resources/app/email/password-recovery/en.txt index ad314b41d..3bac8f815 100644 --- a/backend/resources/app/email/password-recovery/en.txt +++ b/backend/resources/app/email/password-recovery/en.txt @@ -1,4 +1,4 @@ -Hello {{name}}! +Hello {{name|abbreviate:25}}! We received a request to reset your password. Click the link below to choose a new one: diff --git a/backend/resources/app/email/register/en.html b/backend/resources/app/email/register/en.html index 4a425b69f..3f058b184 100644 --- a/backend/resources/app/email/register/en.html +++ b/backend/resources/app/email/register/en.html @@ -168,7 +168,7 @@
-
Hello {{name}}!
+
Hello {{name|abbreviate:25}}!
diff --git a/backend/resources/app/email/register/en.txt b/backend/resources/app/email/register/en.txt index 41a9bd8d9..c38454ccd 100644 --- a/backend/resources/app/email/register/en.txt +++ b/backend/resources/app/email/register/en.txt @@ -1,4 +1,4 @@ -Hello {{name}}! +Hello {{name|abbreviate:25}}! Thanks for signing up for your Penpot account! Please verify your email using the link below and get started building mockups and prototypes today!
-
Hello {{name}}!
+
Hello {{name|abbreviate:25}}!