{% load eventurl %} {% load i18n %}
{% for e in events %}{% eventurl e "presale:event.index" as url %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "Date" %} {% trans "Status" %}
{{ e.name }} {{ e.daterange|default:e.get_date_range_display }} {% if e.has_subevents %} {% trans "Event series" %} {% elif e.presale_is_running and event.organizer.settings.event_list_availability %} {% if e.best_availability_state == 100 %} {% trans "Book now" %} {% elif e.settings.waiting_list_enabled and e.best_availability_state >= 0 %} {% trans "Waiting list" %} {% elif e.best_availability_state == 20 %} {% trans "Reserved" %} {% elif e.best_availability_state < 20 %} {% trans "Sold out" %} {% endif %} {% elif e.presale_is_running %} {% trans "Book now" %} {% elif e.presale_has_ended %} {% trans "Sale over" %} {% elif e.settings.presale_start_show_date %} {% blocktrans trimmed with date=e.presale_start|date:"SHORT_DATE_FORMAT" %} Sale starts {{ date }} {% endblocktrans %} {% else %} {% trans "Not yet on sale" %} {% endif %} {% if e.has_subevents %}{% trans "Buy tickets" %} {% elif e.presale_is_running and e.best_availability_state == 100 %}{% trans "Buy tickets" %} {% else %}{% trans "More info" %} {% endif %}
{% trans "No public upcoming events found." %}