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.translated_title }} -

- {% if notification_app.help_text %} -

- - {{ 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 %} -

- {% endif %} -

-

- - - {% for notification in notification_app.notifications %} - - - + + {% endfor %} + +
- - -
- - {{ 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 %} +
+ + + {% for notification in notification_app.notifications %} + + + - - {% endfor %} - -
+ + +
+ + {{ notification.email_content | truncatechars_html:600 | safe }}
- {% endif %} -
- - {{ notification.course_name }} - {{ "·"|safe }} - {{ notification.time_ago }} - - - - {% trans "View" as tmsg %}{{ tmsg | force_escape }} {{ notification.view_text|default:""}} - - -
-
-

-

- {% if notification_app.show_remaining_count %} -

- - + {{ notification_app.remaining_count }} {% trans "more" as tmsg %}{{ tmsg | force_escape }} - -

- {% endif %} -

+ {% if notification.details %} +

+ {{ notification.details | safe }} +
+ {% endif %} +
+ + {{ notification.course_name }} + {{ "·"|safe }} + {{ notification.time_ago }} + + + + {% trans "View" as tmsg %}{{ tmsg | force_escape }} {{ notification.view_text|default:""}} + + +
+
+

+ {% if notification_app.show_remaining_count %} +
+ + + {{ 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 }} -

+
diff --git a/openedx/core/djangoapps/notifications/templates/notifications/digest_header.html b/openedx/core/djangoapps/notifications/templates/notifications/digest_header.html index 71443b6fb1..4d2c91c180 100644 --- a/openedx/core/djangoapps/notifications/templates/notifications/digest_header.html +++ b/openedx/core/djangoapps/notifications/templates/notifications/digest_header.html @@ -46,7 +46,7 @@ - +
{% for update in email_digest_updates %} 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 e1e69eca51..1963dc0998 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 @@ -12,7 +12,7 @@ -
+ {% include 'notifications/digest_content.html' %}