2016-05-10 00:14:48 +02:00
|
|
|
<table class="room">
|
|
|
|
<tr class="room_header">
|
|
|
|
<td class="room_avatar">
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- if room.avatar_url %}
|
2016-05-10 00:14:48 +02:00
|
|
|
<img alt="" src="{{ room.avatar_url|mxc_to_http(48,48) }}" />
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- else %}
|
|
|
|
{%- if room.hash % 3 == 0 %}
|
2019-03-01 23:02:02 +01:00
|
|
|
<img alt="" src="https://riot.im/img/external/avatar-1.png" />
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- elif room.hash % 3 == 1 %}
|
2019-03-01 23:02:02 +01:00
|
|
|
<img alt="" src="https://riot.im/img/external/avatar-2.png" />
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- else %}
|
2019-03-01 23:02:02 +01:00
|
|
|
<img alt="" src="https://riot.im/img/external/avatar-3.png" />
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|
2016-05-10 00:14:48 +02:00
|
|
|
</td>
|
|
|
|
<td class="room_name" colspan="2">
|
|
|
|
{{ room.title }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- if room.invite %}
|
2016-05-10 00:14:48 +02:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ room.link }}">Join the conversation.</a>
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- else %}
|
|
|
|
{%- for notif in room.notifs %}
|
|
|
|
{%- include 'notif.html' with context %}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
2016-05-10 00:14:48 +02:00
|
|
|
</table>
|