diff sat_templates/templates/bulma/components/reactions.html @ 405:5016fb0ff62f

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 sat_templates/templates/bulma/chat/reactions.html@65c53ec5e777
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sat_templates/templates/bulma/components/reactions.html	Wed May 21 15:41:00 2025 +0200
@@ -0,0 +1,13 @@
+<div class="reactions-container is-flex-wrap-wrap">
+
+    {% for emoji, jids in reactions.items() %}
+        {% set own_reaction = own_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>