Mercurial > libervia-templates
comparison sat_templates/templates/bulma/chat/search_item.html @ 369:1b753e3baf06
bulma (chat): add `search_item` to handle search results in chat selection
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 06 Jul 2023 11:42:16 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
368:68c6f30aecab | 369:1b753e3baf06 |
---|---|
1 {% import 'components/avatar.html' as avatar with context %} | |
2 <div class="column is-2-desktop is-4-touch"> | |
3 <div class="card x-is-hoverable"> | |
4 <a href="{{url}}"> | |
5 <div class="card-image is-flex has-items-centered px-1 py-1"> | |
6 {{ avatar.avatar(item.entity, "is-64x64") }} | |
7 </div> | |
8 <div class="card-content has-text-centered has-text-shortenable px-1 py-1"> | |
9 <span>{{identities[item.entity].nicknames[0] if identities[item.entity].nicknames else item.entity}}</span> | |
10 <div class="search-item__group-tags is-flex is-justify-content-center mt-2"> | |
11 {% if item.groups %} | |
12 <div class="tags"> | |
13 {% for group in item.groups %} | |
14 <span class="tag is-rounded is-light">{{ group }}</span> | |
15 {% endfor %} | |
16 </div> | |
17 {% endif %} | |
18 </div> | |
19 </div> | |
20 </a> | |
21 </div> | |
22 </div> |