Mercurial > libervia-templates
view sat_templates/templates/bulma/chat/reactions.html @ 404:66f98ee041d8
chat: add UI for replies/threads:
rel 457
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 06 May 2025 00:37:41 +0200 |
parents | 65c53ec5e777 |
children |
line wrap: on
line source
<div class="reactions-container is-flex-wrap-wrap"> {% if chat_type == "group" %} {% set local_jid = own_local_jid %} {% else %} {% set local_jid = own_local_jid|bare_jid %} {% endif %} {% for emoji, jids in reactions.items() %} {% set own_reaction = local_jid in jids %} <div class="reaction is-inline-flex is-align-items-center {{ 'own-reaction' if own_reaction }}" data-jids='{{jids|tojson}}' > <span class="emoji has-text-weight-semibold">{{ emoji }}</span> <span class="counter">{{ jids|length }}</span> </div> {% endfor %} </div>