annotate sat_templates/templates/bulma/components/search_item.html @ 373:c5609be6c34e

bulma (list/item): add `safe` to "body" which is a cleaned xhtml value
author Goffi <goffi@goffi.org>
date Mon, 14 Aug 2023 17:01:35 +0200
parents 281d1c958d56
children 5646df8bd391
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>