| 1 | {% if not embedded %}{% extends 'base/base.html' %}{% endif %} |
| 2 | {% import 'components/avatar.html' as avatar with context %} |
| 3 | {% import 'input/form.html' as form with context %} |
| 4 | {% import 'input/field.html' as field with context %} |
| 5 | |
| 6 | {% block body %} |
| 7 | |
| 8 | <section class="section"> |
| 9 | {% call form.form(class="form--single") %} |
| 10 | {{ field.search("search", _("Search rooms and people…"), required=true)}} |
| 11 | {% endcall %} |
| 12 | </section> |
| 13 | |
| 14 | <section class="section"> |
| 15 | <div id="chat_items" class="columns is-mobile is-multiline"> |
| 16 | {% for room in rooms %} |
| 17 | <div class="column is-2-desktop is-4-touch"> |
| 18 | <div class="card x-is-hoverable"> |
| 19 | <a href="{{room.url}}"> |
| 20 | <div class="card-image is-flex has-items-centered px-1 py-1"> |
| 21 | {{ avatar.avatar(room.jid, "is-64x64") }} |
| 22 | </div> |
| 23 | <div class="card-content has-text-centered has-text-shortenable px-1 py-1"> |
| 24 | <span>{{room.name}}</span> |
| 25 | </div> |
| 26 | </a> |
| 27 | </div> |
| 28 | </div> |
| 29 | {% endfor %} |
| 30 | </div> |
| 31 | </section> |
| 32 | |
| 33 | {% endblock body %} |