summary refs log tree commit diff
path: root/synapse/res/templates/room.html
blob: 4fc6f6ac9b31b1d3d31878ee9116282608b70b84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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://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>