summary refs log tree commit diff
path: root/res/templates-vector/notif.txt
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2016-05-05 01:58:58 +0100
committerMatthew Hodgson <matthew@matrix.org>2016-05-05 02:00:33 +0100
commit3c39fa89027452cc4472ceb85d5d91a254cb2f50 (patch)
tree1eb7f98d74574b6c0a135e3fd1a08c3bccee4e5f /res/templates-vector/notif.txt
parenthandle fragments correctly on mxc URLs. (diff)
downloadsynapse-3c39fa89027452cc4472ceb85d5d91a254cb2f50.tar.xz
First cut at Vector-branded mail templates
Diffstat (limited to 'res/templates-vector/notif.txt')
-rw-r--r--res/templates-vector/notif.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/res/templates-vector/notif.txt b/res/templates-vector/notif.txt
new file mode 100644
index 0000000000..b515f394c3
--- /dev/null
+++ b/res/templates-vector/notif.txt
@@ -0,0 +1,12 @@
+{% for message in notif.messages %}
+{{ message.sender_name }} ({{ message.ts|format_ts("%H:%M") }})
+{% if message.msgtype == "m.text" %}
+{{ 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 at {{ notif.link }}