From 759481af6d401c502317c93f8d7d6f281c288dc3 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Tue, 21 Jul 2020 13:58:01 +0300 Subject: [PATCH] Element CSS and logo in email templates (#7919) Use Element CSS and logo in notification emails when app name is Element. Signed-off-by: Jason Robinson --- changelog.d/7919.misc | 1 + synapse/res/templates/mail-Element.css | 7 +++++++ synapse/res/templates/notice_expiry.html | 2 ++ synapse/res/templates/notif_mail.html | 2 ++ 4 files changed, 12 insertions(+) create mode 100644 changelog.d/7919.misc create mode 100644 synapse/res/templates/mail-Element.css diff --git a/changelog.d/7919.misc b/changelog.d/7919.misc new file mode 100644 index 000000000..addaa3518 --- /dev/null +++ b/changelog.d/7919.misc @@ -0,0 +1 @@ +Use Element CSS and logo in notification emails when app name is Element. diff --git a/synapse/res/templates/mail-Element.css b/synapse/res/templates/mail-Element.css new file mode 100644 index 000000000..6a3e36eda --- /dev/null +++ b/synapse/res/templates/mail-Element.css @@ -0,0 +1,7 @@ +.header { + border-bottom: 4px solid #e4f7ed ! important; +} + +.notif_link a, .footer a { + color: #76CFA6 ! important; +} diff --git a/synapse/res/templates/notice_expiry.html b/synapse/res/templates/notice_expiry.html index 6b94d8c36..d87311f65 100644 --- a/synapse/res/templates/notice_expiry.html +++ b/synapse/res/templates/notice_expiry.html @@ -22,6 +22,8 @@ [Riot] {% elif app_name == "Vector" %} [Vector] + {% elif app_name == "Element" %} + [Element] {% else %} [matrix] {% endif %} diff --git a/synapse/res/templates/notif_mail.html b/synapse/res/templates/notif_mail.html index 019506e5f..a2dfeb9e9 100644 --- a/synapse/res/templates/notif_mail.html +++ b/synapse/res/templates/notif_mail.html @@ -22,6 +22,8 @@ [Riot] {% elif app_name == "Vector" %} [Vector] + {% elif app_name == "Element" %} + [Element] {% else %} [matrix] {% endif %}