diff options
author | Matthew Hodgson <matthew@matrix.org> | 2016-05-05 01:58:58 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2016-05-05 02:00:33 +0100 |
commit | 3c39fa89027452cc4472ceb85d5d91a254cb2f50 (patch) | |
tree | 1eb7f98d74574b6c0a135e3fd1a08c3bccee4e5f /res/templates-vector/room.html | |
parent | handle fragments correctly on mxc URLs. (diff) | |
download | synapse-3c39fa89027452cc4472ceb85d5d91a254cb2f50.tar.xz |
First cut at Vector-branded mail templates
Diffstat (limited to 'res/templates-vector/room.html')
-rw-r--r-- | res/templates-vector/room.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/res/templates-vector/room.html b/res/templates-vector/room.html new file mode 100644 index 0000000000..ab11492578 --- /dev/null +++ b/res/templates-vector/room.html @@ -0,0 +1,27 @@ +<div class="room"> + <div class="room_header"> + <div class="room_avatar"> + {% if room.avatar_url %} + <img alt="" src="{{ room.avatar_url|mxc_to_http(48,48) }}" /> + {% else %} + {% if room.hash % 3 == 0 %} + <img alt="" src="https://vector.im/beta/img/76cfa6.png" /> + {% elif room.hash % 3 == 1 %} + <img alt="" src="https://vector.im/beta/img/50e2c2.png" /> + {% else %} + <img alt="" src="https://vector.im/beta/img/f4c371.png" /> + {% endif %} + {% endif %} + </div> + <h2>{{ room.title }}</h2> + </div> + <div class="room_content"> + {% if room.invite %} + <a href="{{ room.link }}">Join the conversation.</a> + {% else %} + {% for notif in room.notifs %} + {% include 'notif.html' with context %} + {% endfor %} + {% endif %} + </div> +</div> |