view 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
line wrap: on
line source

{% import 'components/avatar.html' as avatar with context %}
<div class="column is-2-desktop is-4-touch">
    <div class="card x-is-hoverable">
        <a href="{{url}}">
            <div class="card-image is-flex has-items-centered px-1 py-1">
                {{ avatar.avatar(item.entity, "is-64x64") }}
            </div>
            <div class="card-content has-text-centered has-text-shortenable px-1 py-1">
                <span>{{identities[item.entity].nicknames[0] if identities[item.entity].nicknames else item.entity}}</span>
                <div class="search-item__group-tags is-flex is-justify-content-center mt-2">
                    {% if item.groups %}
                    <div class="tags">
                        {% for group in item.groups %}
                        <span class="tag is-rounded is-light">{{ group }}</span>
                        {% endfor %}
                    </div>
                    {% endif %}
                </div>
            </div>
        </a>
    </div>
</div>