view sat_templates/templates/bulma/invitation/affiliation_item.html @ 304:cdf88211b86b

bulma (input/field): `field` macro now has `control_class` and `in_group` attributes: - `control_class` is used to specify additional classes for the control (when `class` is used for classes of the of the `field`) - when `in_group` is `true`, `field` is not added, only the `control` is used. This is useful for grouping elements in the same field
author Goffi <goffi@goffi.org>
date Sat, 27 Feb 2021 20:44:01 +0100
parents ba6f0af3a3f9
children
line wrap: on
line source

{% import 'components/avatar.html' as avatar with context %}
<div class="media">
    {% if identities is defined %}
        <div class="media-left">
            {{ avatar.avatar(entity_jid) }}
        </div>
    {% endif %}
    <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}}
                {% 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">
        <button class="delete click_to_delete"></button>
    </div>
</div>