2016-05-09 16:14:48 -06:00
|
|
|
<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) }}" />
|
2016-04-27 08:09:55 -06:00
|
|
|
{% else %}
|
2016-05-09 16:14:48 -06:00
|
|
|
{% if room.hash % 3 == 0 %}
|
2019-03-01 15:02:02 -07:00
|
|
|
<img alt="" src="https://riot.im/img/external/avatar-1.png" />
|
2016-05-09 16:14:48 -06:00
|
|
|
{% elif room.hash % 3 == 1 %}
|
2019-03-01 15:02:02 -07:00
|
|
|
<img alt="" src="https://riot.im/img/external/avatar-2.png" />
|
2016-05-09 16:14:48 -06:00
|
|
|
{% else %}
|
2019-03-01 15:02:02 -07:00
|
|
|
<img alt="" src="https://riot.im/img/external/avatar-3.png" />
|
2016-05-09 16:14:48 -06:00
|
|
|
{% endif %}
|
2016-04-27 08:09:55 -06:00
|
|
|
{% endif %}
|
2016-05-09 16:14:48 -06:00
|
|
|
</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>
|