changeset 272:5206abf426cd

bulma (invitation/affiliation_item): import avatar + show mainly nickname then jid below
author Goffi <goffi@goffi.org>
date Fri, 14 Aug 2020 08:46:03 +0200
parents dea66eead698
children a617d37a52e5
files sat_templates/templates/bulma/invitation/affiliation_item.html
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/invitation/affiliation_item.html	Fri Aug 14 08:46:03 2020 +0200
+++ b/sat_templates/templates/bulma/invitation/affiliation_item.html	Fri Aug 14 08:46:03 2020 +0200
@@ -1,13 +1,15 @@
+{% import 'components/avatar.html' as avatar with context %}
 <div class="media">
     {% if identities is defined %}
-        {% if avatar is defined %}
-            <div class="media-left">
-                {{ avatar.avatar(entity_jid) }}
-            </div>
-        {% endif %}
+        <div class="media-left">
+            {{ avatar.avatar(entity_jid) }}
+        </div>
     {% endif %}
     <div class="media-content">
-        <div class="content">{{entity_jid}}</div>
+        <div class="content">
+            {{identities[entity_jid].nicknames[0] if identities[entity_jid].nicknames else entity_jid}}<br>
+            <span class="is-italic is-size-7 has-text-grey-light">{{entity_jid}}</span>
+        </div>
     </div>
     <div class="media-right">
         <button class="delete click_to_delete"></button>