view sat_templates/templates/bulma/chat/reactions.html @ 403:65c53ec5e777

Bulma: complete redesign: This is a WIP full redesign of the whole web UI. Only chat is usable at the moment, many things are broken. The design uses the new Bulma v1+, has a look closer to industry standards, paves the way for a dark theme, and should be easy to use. It's a basis for coming features such as UI/UX for threads. rel 457
author Goffi <goffi@goffi.org>
date Fri, 11 Apr 2025 21:32:05 +0200
parents 38635d393089
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>