mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-10-03 18:38:28 -04:00
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.
This commit is contained in:
parent
24bc15eab4
commit
1519572961
13 changed files with 50 additions and 6 deletions
10
synapse/res/templates/notif_mail.txt
Normal file
10
synapse/res/templates/notif_mail.txt
Normal file
|
@ -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 }}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue