diff sat_templates/templates/bulma/components/contacts_links.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
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sat_templates/templates/bulma/components/contacts_links.html	Wed May 21 15:41:00 2025 +0200
@@ -0,0 +1,20 @@
+{% import 'components/avatar.html' as avatar with context %}
+
+<ul>
+    {% for contact_jid, contact_data in roster.items() %}
+
+        {%- set name = identities[contact_jid].nicknames[0] | default(contact_jid) -%}
+        <li class="pl-2 py-1">
+            <a {{ {'href': base_url + '/' + contact_jid}|xmlattr}} class="has-text-white">
+                <div class="is-flex is-align-items-center my-1">
+                    <div class="mr-2">
+                        {{ avatar.avatar(contact_jid) }}
+                    </div>
+                    <div class="is-flex-grow-1">
+                        <p class="mb-0">{{name}}</p>
+                    </div>
+                </div>
+            </a>
+        </li>
+    {% endfor %}
+</ul>