From 7393bfc244e6e7232adbce833246f8c4eed5bc92 Mon Sep 17 00:00:00 2001
From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com>
Date: Wed, 10 Jan 2024 19:35:25 +0530
Subject: [PATCH] Use phtml instead of translation files for webhook email
---
.../locale/templates/email-webhook.phtml | 21 ++
app/config/locale/templates/email-webhook.tpl | 245 ------------------
app/config/locale/translations/en.json | 4 -
src/Appwrite/Platform/Workers/Webhooks.php | 49 ++--
4 files changed, 39 insertions(+), 280 deletions(-)
create mode 100644 app/config/locale/templates/email-webhook.phtml
delete mode 100644 app/config/locale/templates/email-webhook.tpl
diff --git a/app/config/locale/templates/email-webhook.phtml b/app/config/locale/templates/email-webhook.phtml
new file mode 100644
index 0000000000..fa58339ab8
--- /dev/null
+++ b/app/config/locale/templates/email-webhook.phtml
@@ -0,0 +1,21 @@
+Hi getParam('user') ?>,
+
+Your webhook getParam('webhook') ?> on project getParam('project') ?> has been paused after getParam('attempts') ?> consecutive failures.
+
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
{{optionUrl}}
-
{{redirect}}
-
-
-
-
-
-
- © 2023 Appwrite | 251 Little Falls Drive, Wilmington 19808,
- Delaware, United States
-
-
-
-
\ No newline at end of file
diff --git a/app/config/locale/translations/en.json b/app/config/locale/translations/en.json
index f9dcf9f81a..681c88ae94 100644
--- a/app/config/locale/translations/en.json
+++ b/app/config/locale/translations/en.json
@@ -33,10 +33,6 @@
"emails.certificate.footer": "Your previous certificate will be valid for 30 days since the first failure. We highly recommend investigating this case, otherwise your domain will end up without a valid SSL communication.",
"emails.certificate.thanks": "Thanks",
"emails.certificate.signature": "{{project}} team",
- "emails.webhook.subject": "Your webhook has been paused",
- "emails.webhook.body": "Hello