changeset 301:ba6f0af3a3f9

bulma(invitation/affiliation_item): add an icon to show/set publishing permission
author Goffi <goffi@goffi.org>
date Sat, 20 Feb 2021 13:37:22 +0100 (2021-02-20)
parents 2a697b1376f1
children 60979d67eae7
files sat_templates/templates/bulma/invitation/affiliation_item.html
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/invitation/affiliation_item.html	Sat Feb 20 13:37:19 2021 +0100
+++ b/sat_templates/templates/bulma/invitation/affiliation_item.html	Sat Feb 20 13:37:22 2021 +0100
@@ -8,7 +8,14 @@
     <div class="media-content">
         <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>
+            <span class="is-italic is-size-7 has-text-grey-light">
+                {{entity_jid}}
+                {% if affiliation == 'publisher' %}
+                    <i class="icon-publish has-text-success click_to_set_member"></i>
+                {% elif affiliation == 'member' %}
+                    <i class="icon-publish click_to_set_publisher"></i>
+                {% endif %}
+            </span>
         </div>
     </div>
     <div class="media-right">