annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
369
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% import 'components/avatar.html' as avatar with context %}
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
2 <div class="column is-2-desktop is-4-touch">
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
3 <div class="card x-is-hoverable">
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
4 <a href="{{url}}">
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
5 <div class="card-image is-flex has-items-centered px-1 py-1">
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
6 {{ avatar.avatar(item.entity, "is-64x64") }}
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
7 </div>
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
8 <div class="card-content has-text-centered has-text-shortenable px-1 py-1">
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
9 <span>{{identities[item.entity].nicknames[0] if identities[item.entity].nicknames else item.entity}}</span>
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
10 <div class="search-item__group-tags is-flex is-justify-content-center mt-2">
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
11 {% if item.groups %}
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
12 <div class="tags">
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
13 {% for group in item.groups %}
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
14 <span class="tag is-rounded is-light">{{ group }}</span>
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
15 {% endfor %}
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
16 </div>
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
17 {% endif %}
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
18 </div>
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
19 </div>
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
20 </a>
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
21 </div>
1b753e3baf06 bulma (chat): add `search_item` to handle search results in chat selection
Goffi <goffi@goffi.org>
parents:
diff changeset
22 </div>