From f976266b21a01cb8d16eb6f194a48efc252bdef1 Mon Sep 17 00:00:00 2001 From: sundasnoreen12 Date: Thu, 9 May 2024 13:46:46 +0500 Subject: [PATCH] refactor: paragraph tag is not holding children in email template --- .../notifications/digest_header.html | 48 +++++++------------ 1 file changed, 17 insertions(+), 31 deletions(-) diff --git a/openedx/core/djangoapps/notifications/templates/notifications/digest_header.html b/openedx/core/djangoapps/notifications/templates/notifications/digest_header.html index 1f0a533aea..9791201b5d 100644 --- a/openedx/core/djangoapps/notifications/templates/notifications/digest_header.html +++ b/openedx/core/djangoapps/notifications/templates/notifications/digest_header.html @@ -38,39 +38,25 @@ {% for update in email_digest_updates %} - {% if forloop.last or forloop.revcounter0 == 1 %} - {% if email_digest_updates|length|add:'1'|divisibleby:3 and not forloop.last%} - - {% elif email_digest_updates|length|add:'2'|divisibleby:3 and forloop.last%} - - {% endif %} - {% endif %} - -

- - - - - - - - - -
- {{update.count}} -
- {{update.title}} -
-

+ + + + + + + + + + +
+ {{update.count}} +
+ {{update.title}} +
{% if forloop.counter|divisibleby:3 %} - - {% endif %} + + {% endif %} {% endfor %}