forked-synapse/res/templates-vector/room.html
2016-05-05 02:00:33 +01:00

28 lines
996 B
HTML

<div class="room">
<div class="room_header">
<div 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://vector.im/beta/img/76cfa6.png" />
{% elif room.hash % 3 == 1 %}
<img alt="" src="https://vector.im/beta/img/50e2c2.png" />
{% else %}
<img alt="" src="https://vector.im/beta/img/f4c371.png" />
{% endif %}
{% endif %}
</div>
<h2>{{ room.title }}</h2>
</div>
<div class="room_content">
{% if room.invite %}
<a href="{{ room.link }}">Join the conversation.</a>
{% else %}
{% for notif in room.notifs %}
{% include 'notif.html' with context %}
{% endfor %}
{% endif %}
</div>
</div>