{% 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 %} {% elif regform.moderation_enabled %} {% trans %}Apply for participation{% endtrans %} {% else %} {% trans %}Register{% endtrans %} {% endif %}
{% endif %}
{% endfor %}
{% endif %} {% if published_registrations %}
{% trans %}Participants{% endtrans %}
    {%- for participant in published_registrations|sort(attribute='display_full_name') -%}
  • {%- if not g.static_site -%} {%- endif -%} {{ participant.display_full_name }}
  • {%- endfor -%} {%- if num_hidden_registrations -%}
  • +{{ num_hidden_registrations }}
  • {%- endif -%}
{% elif num_hidden_registrations %}
{% trans %}Participants{% endtrans %}
{{ num_hidden_registrations }}
{% endif %}