diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-10-17 15:44:34 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-10-17 16:46:02 +0100 |
commit | 1519572961d22aeaacbe9fccae7788f0f9e72b1c (patch) | |
tree | 0d7556ac6c3d2c1d1ee150a2be2d0df1771fe45c /res/templates/notif_mail.html | |
parent | update changelog (diff) | |
download | synapse-1519572961d22aeaacbe9fccae7788f0f9e72b1c.tar.xz |
Ship the email templates as package_data
move the example email templates into the synapse package so that they can be used as package data, which should mean that all of the packaging mechanisms (pip, docker, debian, arch, etc) should now come with the example templates. In order to grandfather in people who relied on the templates being in the old place, check for that situation and fall back to using the defaults if the templates directory does not exist.
Diffstat (limited to 'res/templates/notif_mail.html')
-rw-r--r-- | res/templates/notif_mail.html | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/res/templates/notif_mail.html b/res/templates/notif_mail.html deleted file mode 100644 index fcdb3109fe..0000000000 --- a/res/templates/notif_mail.html +++ /dev/null @@ -1,55 +0,0 @@ -<!doctype html> -<html lang="en"> - <head> - <style type="text/css"> - {% include 'mail.css' without context %} - {% include "mail-%s.css" % app_name ignore missing without context %} - </style> - </head> - <body> - <table id="page"> - <tr> - <td> </td> - <td id="inner"> - <table class="header"> - <tr> - <td> - <div class="salutation">Hi {{ user_display_name }},</div> - <div class="summarytext">{{ summary_text }}</div> - </td> - <td class="logo"> - {% if app_name == "Riot" %} - <img src="http://matrix.org/img/riot-logo-email.png" width="83" height="83" alt="[Riot]"/> - {% elif app_name == "Vector" %} - <img src="http://matrix.org/img/vector-logo-email.png" width="64" height="83" alt="[Vector]"/> - {% else %} - <img src="http://matrix.org/img/matrix-120x51.png" width="120" height="51" alt="[matrix]"/> - {% endif %} - </td> - </tr> - </table> - {% for room in rooms %} - {% include 'room.html' with context %} - {% endfor %} - <div class="footer"> - <a href="{{ unsubscribe_link }}">Unsubscribe</a> - <br/> - <br/> - <div class="debug"> - Sending email at {{ reason.now|format_ts("%c") }} due to activity in room {{ reason.room_name }} because - an event was received at {{ reason.received_at|format_ts("%c") }} - which is more than {{ "%.1f"|format(reason.delay_before_mail_ms / (60*1000)) }} ({{ reason.delay_before_mail_ms }}) mins ago, - {% if reason.last_sent_ts %} - and the last time we sent a mail for this room was {{ reason.last_sent_ts|format_ts("%c") }}, - which is more than {{ "%.1f"|format(reason.throttle_ms / (60*1000)) }} (current throttle_ms) mins ago. - {% else %} - and we don't have a last time we sent a mail for this room. - {% endif %} - </div> - </div> - </td> - <td> </td> - </tr> - </table> - </body> -</html> |