{% load rules %} {% load events %} {% with event_association as event_association %} {% with user as user %} {% with separator|default:", " as separator %} {% with read_only|default:False as read_only %} {% with redirect_url|default:"" as redirect_url %} {% has_perm 'events.can_attend_group_members' user event_association.entity as can_attend_group_members %} {% if can_attend_group_members %} {% for candidate in event_association.entity.members.all|filter_event_attendees:event_association.container %} {{ candidate }} {% if not read_only %} {% if not forloop.first %}{{ separator }}{% endif %}
{% endif %} {% endfor %} {% else %} {{ event_association.entity.members.all|filter_event_attendees:event_association.container|join:separator }} {% endif %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %}