From 276e1890031cf9915888ed9bdd786112873fa4ea Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Mon, 2 Jun 2025 16:24:06 +0500 Subject: [PATCH] chore: replaced tags in digest template (#36835) --- .../notifications/digest_content.html | 127 +++++++++--------- .../notifications/digest_footer.html | 12 +- .../notifications/digest_header.html | 2 +- .../edx_ace/email_digest/email/body.html | 2 +- 4 files changed, 71 insertions(+), 72 deletions(-) diff --git a/openedx/core/djangoapps/notifications/templates/notifications/digest_content.html b/openedx/core/djangoapps/notifications/templates/notifications/digest_content.html index d951de10be..05613ff8a0 100644 --- a/openedx/core/djangoapps/notifications/templates/notifications/digest_content.html +++ b/openedx/core/djangoapps/notifications/templates/notifications/digest_content.html @@ -1,69 +1,68 @@ {% load i18n %} {% for notification_app in email_content %} -
-
- {{ notification_app.help_text }}
-
- {% if notification_app.help_text_url %}
-
-
- {% trans "View all" as tmsg %}{{ tmsg | force_escape }}
-
+
+
+ {{ notification_app.translated_title }}
+
+ {% if notification_app.help_text %}
+
+
+ {{ notification_app.help_text }}
- {% endif %}
-
-
|
- |
-
- - - {{ notification.email_content | truncatechars_html:600 | safe }} -- {% if notification.details %} - - {{ notification.details | safe }} + {% if notification_app.help_text_url %} + + + {% trans "View all" as tmsg %}{{ tmsg | force_escape }} + + + {% endif %} ++ {% endif %} + + |
+
+ + + {{ notification_app.remaining_count }} {% trans "more" as tmsg %}{{ tmsg | force_escape }} + ++ {% endif %} + {% endfor %} diff --git a/openedx/core/djangoapps/notifications/templates/notifications/digest_footer.html b/openedx/core/djangoapps/notifications/templates/notifications/digest_footer.html index ae5c6b4699..80e9f681cc 100644 --- a/openedx/core/djangoapps/notifications/templates/notifications/digest_footer.html +++ b/openedx/core/djangoapps/notifications/templates/notifications/digest_footer.html @@ -31,25 +31,25 @@
+
{% if footer_email_reason %} {{ footer_email_reason }} {% else %} {% trans "You are receiving this email because you have subscribed to email digest" as tmsg %}{{ tmsg | force_escape }} {% endif %} - -++
{% trans "Notification Settings" as tmsg %}{{ tmsg | force_escape }} {% trans "Unsubscribe from email digest for learning activity" as tmsg %}{{ tmsg | force_escape }} - -++
© {% now "Y" %} {{ platform_name }}. {% trans "All rights reserved" as tmsg %}{{ tmsg | force_escape }}
{{ mailing_address }} - +
| + | {% include 'notifications/digest_content.html' %} |