2016-04-21 14:22:53 -04:00
|
|
|
<div class="room">
|
2016-04-27 10:09:55 -04:00
|
|
|
<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>
|
2016-04-28 12:29:39 -04:00
|
|
|
<h2>{{ room.title }}</h2>
|
|
|
|
<div class="room_content">
|
|
|
|
{% if room.invite %}
|
|
|
|
<a href="{{ room.link }}">Join the conversation.</a>
|
|
|
|
{% else %}
|
2016-04-28 06:49:36 -04:00
|
|
|
{% for notif in room.notifs %}
|
|
|
|
{% include 'notif.html' with context %}
|
|
|
|
{% endfor %}
|
2016-04-28 12:29:39 -04:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2016-04-21 14:22:53 -04:00
|
|
|
</div>
|