{% if regforms %}
{% trans %}Registration{% endtrans %}
{% for regform in regforms %} {% set registration = user_registrations[regform] %}
{% if loop.length == 1 and registration %} {% trans %}You are registered for this event.{% endtrans %} {% elif loop.length == 1 and regform.open %} {% trans %}This event is open to new participants.{% endtrans %} {% else %} {{ regform.title }} {% endif %} {% if registration %} {% if registration.state.name == 'withdrawn' %} Withdrawn {% elif registration.state.name == 'rejected' %} Rejected {% elif registration.state.name == 'pending' %} Pending {% endif %} {% endif %}
{% if not g.static_site %}
{% if regform.publish_registration_count %} {{- regform.active_registration_count }} {%- if regform.registration_limit %} / {{ regform.registration_limit }} {%- endif -%} {% endif %}
{% if registration %} {% if registration.can_be_modified %} {% trans %}Modify registration{% endtrans %} {% else %} {% trans %}Check details{% endtrans %} {% endif %} {% elif regform.limit_reached %} {% trans %}Register{% endtrans %} {% elif regform.moderation_enabled %} {% trans %}Apply for participation{% endtrans %} {% else %} {% trans %}Register{% endtrans %} {% endif %}
{% endif %}
{% endfor %}
{% endif %} {% set publish_registrations = regforms|selectattr('publish_registrations_enabled')|any %} {% set total_registrations = regforms|sum(attribute='active_registration_count') %} {% set unpublished_registrations = total_registrations - event.published_registrations|length %} {% if publish_registrations %}
{% trans %}Participants{% endtrans %}
    {%- for participant in event.published_registrations|sort(attribute='display_full_name') -%}
  • {%- if not g.static_site -%} {%- endif -%} {{ participant.display_full_name }}
  • {%- endfor -%} {% if unpublished_registrations == 1 %}
  • 1 {% trans %}other{% endtrans %}
  • {% elif unpublished_registrations > 1%}
  • {{ unpublished_registrations }} {% trans %}others{% endtrans %}
  • {% endif %}
{% endif %}