Skip to content

Commit 7aaf511

Browse files
authored
feat: added batched email template (#37834)
1 parent 50a0691 commit 7aaf511

File tree

6 files changed

+66
-0
lines changed

6 files changed

+66
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{% load i18n %}
2+
<table
3+
border="0"
4+
cellpadding="0"
5+
cellspacing="0"
6+
style="background: #00262b; color: white; width: 100%; padding: 2rem;"
7+
>
8+
<tbody>
9+
<tr align="right">
10+
<td>
11+
<a href="{{unsubscribe_url}}" rel="noopener noreferrer" target="_blank" style="color: white; text-decoration: none; font-size: 12px; line-height: 10px">
12+
{% trans "Unsubscribe" as tmsg %}{{ tmsg | force_escape }}
13+
</a>
14+
</td>
15+
</tr>
16+
<tr align="center">
17+
<td>
18+
<img src="{{ logo_notification_cadence_url }}" style="width: 64px" height="auto" alt="logo_url" />
19+
</td>
20+
</tr>
21+
<tr style="height: 20px"></tr>
22+
<tr align="center">
23+
<td style="font-family: Inter, Arial, Verdana, sans-serif; font-size: 32px; font-style: normal; font-weight: 700; line-height: 36px">
24+
{% trans "Recent activity" as tmsg %}{{ tmsg | force_escape }}
25+
</td>
26+
</tr>
27+
</tbody>
28+
</table>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{% load i18n %}
2+
<head>
3+
<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">
4+
</head>
5+
6+
<div style="margin:0; padding:0; min-width: 100%; background-color:#C9C9C9; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-smooth: never;">
7+
<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">
8+
<tbody style="background-color:#f5f5f5">
9+
<tr>
10+
<td>
11+
{% include 'notifications/batched_email_header.html' %}
12+
</td>
13+
</tr>
14+
<tr>
15+
<td style="padding:1.5rem; background-color:white">
16+
{% include 'notifications/digest_content.html' %}
17+
</td>
18+
</tr>
19+
<tr>
20+
<td style="padding: 1.5rem; background-color: #F2F0EF">
21+
{% include 'notifications/digest_footer.html' %}
22+
</td>
23+
</tr>
24+
</tbody>
25+
</table>
26+
</div>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% load i18n %}
2+
3+
{% trans "Recent activity on" %} {{ platform_name }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ platform_name }}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% load i18n %}
2+
{% get_current_language as LANGUAGE_CODE %}
3+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
4+
<title lang="{{ LANGUAGE_CODE|default:'en' }}">{{ platform_name }}</title>
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% load i18n %}
2+
3+
{% trans "Recent activity on" %} {{ platform_name }}

0 commit comments

Comments
 (0)