room.html 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <table class="room">
  2. <tr class="room_header">
  3. <td class="room_avatar">
  4. {% if room.avatar_url %}
  5. <img alt="" src="{{ room.avatar_url|mxc_to_http(48,48) }}" />
  6. {% else %}
  7. {% if room.hash % 3 == 0 %}
  8. <img alt="" src="https://vector.im/beta/img/76cfa6.png" />
  9. {% elif room.hash % 3 == 1 %}
  10. <img alt="" src="https://vector.im/beta/img/50e2c2.png" />
  11. {% else %}
  12. <img alt="" src="https://vector.im/beta/img/f4c371.png" />
  13. {% endif %}
  14. {% endif %}
  15. </td>
  16. <td class="room_name" colspan="2">
  17. {{ room.title }}
  18. </td>
  19. </tr>
  20. {% if room.invite %}
  21. <tr>
  22. <td></td>
  23. <td>
  24. <a href="{{ room.link }}">Join the conversation.</a>
  25. </td>
  26. <td></td>
  27. </tr>
  28. {% else %}
  29. {% for notif in room.notifs %}
  30. {% include 'notif.html' with context %}
  31. {% endfor %}
  32. {% endif %}
  33. </table>