| 1 | {% import 'components/avatar.html' as avatar with context %} |
| 2 | |
| 3 | <div class="column is-2-desktop is-6-touch"> |
| 4 | <div class="card x-is-hoverable"> |
| 5 | {% if multiple_selection %} |
| 6 | <div class="checkbox-container pl-1 pt-1"> |
| 7 | <input type="checkbox" class="search-item__checkbox"> |
| 8 | </div> |
| 9 | {% endif %} |
| 10 | <a href="{{url}}"> |
| 11 | <div class="card-image is-flex has-items-centered px-1 py-1"> |
| 12 | {{ avatar.avatar(item.entity, "is-64x64") }} |
| 13 | </div> |
| 14 | <div class="card-content has-text-centered has-text-shortenable px-1 py-1"> |
| 15 | <span>{{identities[item.entity].nicknames[0] if identities[item.entity].nicknames else item.entity}}</span> |
| 16 | {% if not options.no_group %} |
| 17 | <div class="search-item__group-tags is-flex is-justify-content-center mt-2"> |
| 18 | {% if item.groups %} |
| 19 | <div class="tags"> |
| 20 | {% for group in item.groups %} |
| 21 | <span class="tag is-rounded is-light">{{ group }}</span> |
| 22 | {% endfor %} |
| 23 | </div> |
| 24 | {% endif %} |
| 25 | </div> |
| 26 | {% endif %} |
| 27 | </div> |
| 28 | </a> |
| 29 | {% block call %}{% endblock %} |
| 30 | </div> |
| 31 | </div> |