From 3c39fa89027452cc4472ceb85d5d91a254cb2f50 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 5 May 2016 01:58:58 +0100 Subject: First cut at Vector-branded mail templates --- res/templates-vector/notif.html | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 res/templates-vector/notif.html (limited to 'res/templates-vector/notif.html') diff --git a/res/templates-vector/notif.html b/res/templates-vector/notif.html new file mode 100644 index 0000000000..97ea425011 --- /dev/null +++ b/res/templates-vector/notif.html @@ -0,0 +1,34 @@ +
+
+ {% for message in notif.messages %} +
+ {% if message.sender_avatar_url %} + + {% else %} + {% if message.sender_hash % 3 == 0 %} + + {% elif message.sender_hash % 3 == 1 %} + + {% else %} + + {% endif %} + + {% endif %} +
{{ message.sender_name }}
+
{{ message.ts|format_ts("%H:%M") }}
+
+ {% if message.msgtype == "m.text" %} + {{ message.body_text_html }} + {% elif message.msgtype == "m.image" %} + + {% elif message.msgtype == "m.file" %} + {{ message.body_text_plain }} + {% endif %} +
+
+ {% endfor %} +
+ +
-- cgit 1.5.1