From 7aaf511a3827b57f40d624e6b46575285bc6ca30 Mon Sep 17 00:00:00 2001
From: Awais Ansari <79941147+awais-ansari@users.noreply.github.com>
Date: Mon, 5 Jan 2026 14:28:08 +0500
Subject: [PATCH] feat: added batched email template (#37834)
---
.../notifications/batched_email_header.html | 28 +++++++++++++++++++
.../edx_ace/batched_email/email/body.html | 26 +++++++++++++++++
.../edx_ace/batched_email/email/body.txt | 3 ++
.../edx_ace/batched_email/email/from_name.txt | 1 +
.../edx_ace/batched_email/email/head.html | 5 ++++
.../edx_ace/batched_email/email/subject.txt | 3 ++
6 files changed, 66 insertions(+)
create mode 100644 openedx/core/djangoapps/notifications/templates/notifications/batched_email_header.html
create mode 100644 openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/body.html
create mode 100644 openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/body.txt
create mode 100644 openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/from_name.txt
create mode 100644 openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/head.html
create mode 100644 openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/subject.txt
diff --git a/openedx/core/djangoapps/notifications/templates/notifications/batched_email_header.html b/openedx/core/djangoapps/notifications/templates/notifications/batched_email_header.html
new file mode 100644
index 0000000000..0509e97f3e
--- /dev/null
+++ b/openedx/core/djangoapps/notifications/templates/notifications/batched_email_header.html
@@ -0,0 +1,28 @@
+{% load i18n %}
+
diff --git a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/body.html b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/body.html
new file mode 100644
index 0000000000..7b4c04a5db
--- /dev/null
+++ b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/body.html
@@ -0,0 +1,26 @@
+{% load i18n %}
+
+
+
+
+
+
+
+
+ |
+ {% include 'notifications/batched_email_header.html' %}
+ |
+
+
+ |
+ {% include 'notifications/digest_content.html' %}
+ |
+
+
+ |
+ {% include 'notifications/digest_footer.html' %}
+ |
+
+
+
+
diff --git a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/body.txt b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/body.txt
new file mode 100644
index 0000000000..0677a5199e
--- /dev/null
+++ b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/body.txt
@@ -0,0 +1,3 @@
+{% load i18n %}
+
+{% trans "Recent activity on" %} {{ platform_name }}
diff --git a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/from_name.txt b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/from_name.txt
new file mode 100644
index 0000000000..dcbc23c004
--- /dev/null
+++ b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/from_name.txt
@@ -0,0 +1 @@
+{{ platform_name }}
diff --git a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/head.html b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/head.html
new file mode 100644
index 0000000000..7a24f14872
--- /dev/null
+++ b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/head.html
@@ -0,0 +1,5 @@
+{% load i18n %}
+{% get_current_language as LANGUAGE_CODE %}
+
+{{ platform_name }}
+
diff --git a/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/subject.txt b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/subject.txt
new file mode 100644
index 0000000000..0677a5199e
--- /dev/null
+++ b/openedx/core/djangoapps/notifications/templates/notifications/edx_ace/batched_email/email/subject.txt
@@ -0,0 +1,3 @@
+{% load i18n %}
+
+{% trans "Recent activity on" %} {{ platform_name }}