diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-10-17 17:34:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 17:34:22 +0100 |
commit | f1bfe6167a5640caaf2f85a96b87e327132f3906 (patch) | |
tree | 1c1620912f5bdec15bd4f1cc43fe47a66a231b72 /synapse/res/templates/notif.txt | |
parent | update changelog (diff) | |
parent | Put the warning blob at the top of the file (diff) | |
download | synapse-f1bfe6167a5640caaf2f85a96b87e327132f3906.tar.xz |
Merge pull request #4052 from matrix-org/rav/ship_resources_as_package_data
Ship the email templates as package_data
Diffstat (limited to 'synapse/res/templates/notif.txt')
-rw-r--r-- | synapse/res/templates/notif.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/synapse/res/templates/notif.txt b/synapse/res/templates/notif.txt new file mode 100644 index 0000000000..a37bee9833 --- /dev/null +++ b/synapse/res/templates/notif.txt @@ -0,0 +1,16 @@ +{% for message in notif.messages %} +{% if message.msgtype == "m.emote" %}* {% endif %}{{ message.sender_name }} ({{ message.ts|format_ts("%H:%M") }}) +{% if message.msgtype == "m.text" %} +{{ message.body_text_plain }} +{% elif message.msgtype == "m.emote" %} +{{ message.body_text_plain }} +{% elif message.msgtype == "m.notice" %} +{{ message.body_text_plain }} +{% elif message.msgtype == "m.image" %} +{{ message.body_text_plain }} +{% elif message.msgtype == "m.file" %} +{{ message.body_text_plain }} +{% endif %} +{% endfor %} + +View {{ room.title }} at {{ notif.link }} |