summary refs log tree commit diff
path: root/res/templates/room.html
blob: 6c68ee1fdcd41a977507e1b604425ca4a273d30d (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
<div class="room">
    <h2>{{ room.title }}</h2>
    <div class="room_avatar">
        {% if room.avatar_url %}
            <img src="{{ room.avatar_url|mxc_to_http(48,48) }}" />
        {% else %}
            {% if room.hash % 3 == 0 %}
                <img src="https://vector.im/beta/img/76cfa6.png"  />
            {% elif room.hash % 3 == 1 %}
                <img src="https://vector.im/beta/img/50e2c2.png"  />
            {% else %}
                <img src="https://vector.im/beta/img/f4c371.png"  />
            {% endif %}
        {% endif %}
    </div>
    {% if room.invite %}
        <a href="{{ room.link }}">Join the conversation.</a>
    {% else %}
        <div>
            {% for notif in room.notifs %}
                {% include 'notif.html' with context %}
            {% endfor %}
        </div>
    {% endif %}
</div>