diff options
author | Matthew Hodgson <matthew@arasphere.net> | 2016-05-10 16:30:05 +0200 |
---|---|---|
committer | Matthew Hodgson <matthew@arasphere.net> | 2016-05-10 16:30:05 +0200 |
commit | fe97b81c0929fd6cc31e8f0eb432e88ca8ccb045 (patch) | |
tree | 0c771563044691d447ea85cf3e3278ef50c07ea9 /res/templates/room.html | |
parent | Merge pull request #763 from matrix-org/erikj/ignore_user (diff) | |
parent | Merge remote-tracking branch 'origin/develop' into dbkr/email_notifs (diff) | |
download | synapse-fe97b81c0929fd6cc31e8f0eb432e88ca8ccb045.tar.xz |
Merge pull request #759 from matrix-org/dbkr/email_notifs
Send email notifications for missed messages
Diffstat (limited to 'res/templates/room.html')
-rw-r--r-- | res/templates/room.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/res/templates/room.html b/res/templates/room.html new file mode 100644 index 0000000000..723c222d25 --- /dev/null +++ b/res/templates/room.html @@ -0,0 +1,33 @@ +<table class="room"> + <tr class="room_header"> + <td 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 %} + </td> + <td class="room_name" colspan="2"> + {{ room.title }} + </td> + </tr> + {% if room.invite %} + <tr> + <td></td> + <td> + <a href="{{ room.link }}">Join the conversation.</a> + </td> + <td></td> + </tr> + {% else %} + {% for notif in room.notifs %} + {% include 'notif.html' with context %} + {% endfor %} + {% endif %} +</table> |