From 0d4adaa5d70364fe9ff0857b15cbc58cf952f584 Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Fri, 10 May 2024 17:52:19 +0500 Subject: [PATCH] fix: updated ace template for notifications email digest (#34778) --- .../edx_ace/email_digest/email/body.html | 23 ++++++++++++++++++- .../edx_ace/email_digest/email/body.txt | 23 +------------------ .../edx_ace/email_digest/email/head.html | 4 +++- 3 files changed, 26 insertions(+), 24 deletions(-) diff --git a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/body.html b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/body.html index c847f75e4f..e45fd8029e 100644 --- a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/body.html +++ b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/body.html @@ -1 +1,22 @@ -<%page expression_filter="h"/> +
+ + + + + + + + + + + + +
+ {% include 'notifications/digest_header.html' %} +
+ {% include 'notifications/digest_content.html' %} +
+ {% include 'notifications/digest_footer.html' %} +
+ +
diff --git a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/body.txt b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/body.txt index e45fd8029e..3bbe26faf7 100644 --- a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/body.txt +++ b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/body.txt @@ -1,22 +1 @@ -
- - - - - - - - - - - - -
- {% include 'notifications/digest_header.html' %} -
- {% include 'notifications/digest_content.html' %} -
- {% include 'notifications/digest_footer.html' %} -
- -
+{{ digest_frequency }} Notifications Digest for {% if digest_frequency == "Weekly" %}the Week of {% endif %}{{ start_date }} diff --git a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/head.html b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/head.html index c847f75e4f..8d63916b7a 100644 --- a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/head.html +++ b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/email_digest/email/head.html @@ -1 +1,3 @@ -<%page expression_filter="h"/> + +{{ platform_name }} +