annotate sat_templates/templates/bulma/chat/reactions_details.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
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 {% import 'components/avatar.html' as avatar with context %}
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
2
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
3 <div class="reacting-users-list">
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
4 {% for jid in reacting_jids %}
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
5 <div class="reacting-user-item is-flex is-align-items-center mb-2">
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
6 {{ avatar.avatar(jid, "is-24x24") }}
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
7 <span class="reacting-user-nickname ml-2">
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
8 {{ identities[jid].nicknames[0] if identities[jid].nicknames else jid }}
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
9 </span>
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
10 </div>
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
11 {% endfor %}
941e4006ab6e bulma (message): reactions + fixes:
Goffi <goffi@goffi.org>
parents:
diff changeset
12 </div>