feat: added batched email template (#37834)

This commit is contained in:
Awais Ansari
2026-01-05 14:28:08 +05:00
committed by GitHub
parent 50a0691a8a
commit 7aaf511a38
6 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{% load i18n %}
<table
border="0"
cellpadding="0"
cellspacing="0"
style="background: #00262b; color: white; width: 100%; padding: 2rem;"
>
<tbody>
<tr align="right">
<td>
<a href="{{unsubscribe_url}}" rel="noopener noreferrer" target="_blank" style="color: white; text-decoration: none; font-size: 12px; line-height: 10px">
{% trans "Unsubscribe" as tmsg %}{{ tmsg | force_escape }}
</a>
</td>
</tr>
<tr align="center">
<td>
<img src="{{ logo_notification_cadence_url }}" style="width: 64px" height="auto" alt="logo_url" />
</td>
</tr>
<tr style="height: 20px"></tr>
<tr align="center">
<td style="font-family: Inter, Arial, Verdana, sans-serif; font-size: 32px; font-style: normal; font-weight: 700; line-height: 36px">
{% trans "Recent activity" as tmsg %}{{ tmsg | force_escape }}
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,26 @@
{% load i18n %}
<head>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'" rel="stylesheet" type="text/css">
</head>
<div style="margin:0; padding:0; min-width: 100%; background-color:#C9C9C9; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-smooth: never;">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="line-height:1.5; max-width:600px; font-family:Inter, Arial, Verdana, sans-serif">
<tbody style="background-color:#f5f5f5">
<tr>
<td>
{% include 'notifications/batched_email_header.html' %}
</td>
</tr>
<tr>
<td style="padding:1.5rem; background-color:white">
{% include 'notifications/digest_content.html' %}
</td>
</tr>
<tr>
<td style="padding: 1.5rem; background-color: #F2F0EF">
{% include 'notifications/digest_footer.html' %}
</td>
</tr>
</tbody>
</table>
</div>

View File

@@ -0,0 +1,3 @@
{% load i18n %}
{% trans "Recent activity on" %} {{ platform_name }}

View File

@@ -0,0 +1,5 @@
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title lang="{{ LANGUAGE_CODE|default:'en' }}">{{ platform_name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>

View File

@@ -0,0 +1,3 @@
{% load i18n %}
{% trans "Recent activity on" %} {{ platform_name }}