mirror of https://github.com/watcha-fr/synapse
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
<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://riot.im/img/external/avatar-1.png" />
|
|
{%- elif room.hash % 3 == 1 %}
|
|
<img alt="" src="https://riot.im/img/external/avatar-2.png" />
|
|
{%- else %}
|
|
<img alt="" src="https://riot.im/img/external/avatar-3.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>
|
|
|