diff --git a/templates/zerver/emails/digest.html b/templates/zerver/emails/digest.html index efc15c6000..0e8030313c 100644 --- a/templates/zerver/emails/digest.html +++ b/templates/zerver/emails/digest.html @@ -1,7 +1,9 @@ +{% extends "zerver/emails/email_base_messages.html" %} {# Mail sent to a user who hasn't logged in for 24 hours. #} +{% block content %} Hello {{ name }},

A lot has happened on Zulip while you've been away! Visit Zulip to catch up.

@@ -92,8 +94,11 @@ Hello {{ name }},

Cheers,
The Zulip Team

+{% endblock %} +{% block manage_preferences %}

Manage email preferences | Unsubscribe from digest emails

+{% endblock %} diff --git a/templates/zerver/emails/email_base_messages.html b/templates/zerver/emails/email_base_messages.html new file mode 100644 index 0000000000..268a8d70ab --- /dev/null +++ b/templates/zerver/emails/email_base_messages.html @@ -0,0 +1,26 @@ + + + + + Zulip + + + + {% block preheader %}{% endblock %} + + {% block content %}{% endblock %} + {% block manage_preferences %}{% endblock %} + + diff --git a/templates/zerver/emails/missed_message.html b/templates/zerver/emails/missed_message.html index 8124112aa2..8e043159e8 100644 --- a/templates/zerver/emails/missed_message.html +++ b/templates/zerver/emails/missed_message.html @@ -1,7 +1,9 @@ +{% extends "zerver/emails/email_base_messages.html" %} {# Mail sent to user when they were not logged in and received a PM or @-mention #} +{% block content %} Hello {{ name }},

@@ -43,5 +45,8 @@ Hello {{ name }},

The Zulip Team

+{% endblock %} +{% block manage_preferences %}

Manage email preferences | Unsubscribe from missed message emails

+{% endblock %} diff --git a/tools/check-templates b/tools/check-templates index 25b4a49fea..54febb0852 100755 --- a/tools/check-templates +++ b/tools/check-templates @@ -127,6 +127,8 @@ def check_html_templates(templates, all_dups): 'templates/zerver/api.html', 'templates/zerver/apps.html', 'templates/zerver/compose.html', + 'templates/zerver/emails/digest.html', + 'templates/zerver/emails/missed_message.html', 'templates/zerver/hello.html', 'templates/zerver/home.html', 'templates/zerver/index.html',