annotate sat_templates/templates/bulma/chat/reactions.html @ 399:e7152fc8a81f default tip

bulma (components/search_item): explicitely import "avatar".
author Goffi <goffi@goffi.org>
date Thu, 06 Jun 2024 15:22:22 +0200
parents 38635d393089
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
385
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
1 <div class="reactions-container is-flex-wrap-wrap">
390
38635d393089 bulma (chat/reactions): use a special style for reactions made by the user.
Goffi <goffi@goffi.org>
parents: 385
diff changeset
2
38635d393089 bulma (chat/reactions): use a special style for reactions made by the user.
Goffi <goffi@goffi.org>
parents: 385
diff changeset
3 {% if chat_type == "group" %}
38635d393089 bulma (chat/reactions): use a special style for reactions made by the user.
Goffi <goffi@goffi.org>
parents: 385
diff changeset
4 {% set local_jid = own_local_jid %}
38635d393089 bulma (chat/reactions): use a special style for reactions made by the user.
Goffi <goffi@goffi.org>
parents: 385
diff changeset
5 {% else %}
38635d393089 bulma (chat/reactions): use a special style for reactions made by the user.
Goffi <goffi@goffi.org>
parents: 385
diff changeset
6 {% set local_jid = own_local_jid|bare_jid %}
38635d393089 bulma (chat/reactions): use a special style for reactions made by the user.
Goffi <goffi@goffi.org>
parents: 385
diff changeset
7 {% endif %}
38635d393089 bulma (chat/reactions): use a special style for reactions made by the user.
Goffi <goffi@goffi.org>
parents: 385
diff changeset
8
385
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
9 {% for emoji, jids in reactions.items() %}
390
38635d393089 bulma (chat/reactions): use a special style for reactions made by the user.
Goffi <goffi@goffi.org>
parents: 385
diff changeset
10 {% set own_reaction = local_jid in jids %}
385
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
11 <div
390
38635d393089 bulma (chat/reactions): use a special style for reactions made by the user.
Goffi <goffi@goffi.org>
parents: 385
diff changeset
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 }}"
385
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
13 data-jids='{{jids|tojson}}'
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
14 >
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
15 <span class="emoji has-text-weight-semibold">{{ emoji }}</span>
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
16 <span class="counter">{{ jids|length }}</span>
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
17 </div>
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
18 {% endfor %}
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
19 </div>