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 /synapse/res/templates/notif_mail.txt | |
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 'synapse/res/templates/notif_mail.txt')
-rw-r--r-- | synapse/res/templates/notif_mail.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/synapse/res/templates/notif_mail.txt b/synapse/res/templates/notif_mail.txt new file mode 100644 index 0000000000..24843042a5 --- /dev/null +++ b/synapse/res/templates/notif_mail.txt @@ -0,0 +1,10 @@ +Hi {{ user_display_name }}, + +{{ summary_text }} + +{% for room in rooms %} +{% include 'room.txt' with context %} +{% endfor %} + +You can disable these notifications at {{ unsubscribe_link }} + |