Mercurial > libervia-templates
comparison sat_templates/templates/bulma/chat/reactions.html @ 405:5016fb0ff62f default tip
Blog redesign: work in progress redesign of the blog.
Some templates have been moved from chat to components to be re-used in other features,
like blog here.
Blog follows same global design as chat with a left panel to search/open blogs.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 21 May 2025 15:41:00 +0200 |
parents | 66f98ee041d8 |
children |
comparison
equal
deleted
inserted
replaced
404:66f98ee041d8 | 405:5016fb0ff62f |
---|---|
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 | |
9 {% for emoji, jids in reactions.items() %} | |
10 {% set own_reaction = local_jid in jids %} | |
11 <div | |
12 class="reaction is-inline-flex is-align-items-center {{ 'own-reaction' if own_reaction }}" | |
13 data-jids='{{jids|tojson}}' | |
14 > | |
15 <span class="emoji has-text-weight-semibold">{{ emoji }}</span> | |
16 <span class="counter">{{ jids|length }}</span> | |
17 </div> | |
18 {% endfor %} | |
19 </div> |