{% set ns = namespace(affiliation=none) %} {% for value in presences %} {% if ns.affiliation != value.affiliation_txt and page == 1 and not compact %}
  • {% if value.affiliation == 'owner' %} star {% elif value.affiliation == 'admin' %} star {% endif %}

    {{ value.affiliation_txt }}

  • {% endif %}
  • {% if not compact %} {% if value.jid and value.jid != me %} comment {% elif not value.jid and not value.self %} comment {% endif %} {% if can_moderate and not value.self %} manage_accounts {% endif %} {% endif %}

    {{ value.nick }} {% if value.role == 'visitor' %} voice_selection_off {% endif %}

    {% if value.status and not compact %}

    {{ value.status }}

    {% endif %}
  • {% set ns.affiliation = value.affiliation_txt %} {% endfor %}