Mercurial > libervia-templates
comparison sat_templates/templates/bulma/chat/reactions.html @ 390:38635d393089
bulma (chat/reactions): use a special style for reactions made by the user.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 13 Dec 2023 22:01:46 +0100 |
parents | 941e4006ab6e |
children |
comparison
equal
deleted
inserted
replaced
389:2eaea9a9c234 | 390:38635d393089 |
---|---|
1 <div class="reactions-container is-flex-wrap-wrap"> | 1 <div class="reactions-container is-flex-wrap-wrap"> |
2 | |
3 {% if chat_type == "group" %} | |
4 {% set local_jid = own_local_jid %} | |
5 {% else %} | |
6 {% set local_jid = own_local_jid|bare_jid %} | |
7 {% endif %} | |
8 | |
2 {% for emoji, jids in reactions.items() %} | 9 {% for emoji, jids in reactions.items() %} |
10 {% set own_reaction = local_jid in jids %} | |
3 <div | 11 <div |
4 class="reaction box is-shadowless is-inline-flex is-align-items-center my-1 ml-0 mr-2 px-2 py-1 is-size-6 has-background-light has-border is-not-selectable" | 12 class="reaction box is-shadowless is-inline-flex is-align-items-center my-1 ml-0 mr-2 px-2 py-1 is-size-6 has-background-light has-border is-not-selectable {{ 'own-reaction' if own_reaction }}" |
5 data-jids='{{jids|tojson}}' | 13 data-jids='{{jids|tojson}}' |
6 > | 14 > |
7 <span class="emoji has-text-weight-semibold">{{ emoji }}</span> | 15 <span class="emoji has-text-weight-semibold">{{ emoji }}</span> |
8 <span class="counter">{{ jids|length }}</span> | 16 <span class="counter">{{ jids|length }}</span> |
9 </div> | 17 </div> |