{% extends "pretixpresale/organizers/base.html" %} {% load i18n %} {% load rich_text %} {% load tz %} {% load eventurl %} {% load urlreplace %} {% load thumb %} {% block title %}{% trans "Event list" %}{% endblock %} {% block custom_header %} {{ block.super }} {% if organizer_logo %} {% endif %} {% endblock %} {% block content %}
{% if organizer_homepage_text %} {{ organizer_homepage_text | rich_text }} {% endif %}
{% if "old" in request.GET %}

{% trans "Past events" %}

{% else %}

{% trans "Upcoming events" %}

{% endif %}
{% include "pretixpresale/fragment_calendar_nav.html" with date=date request=request style="list" %}
{% if events %}
{% for e in events %}{% eventurl e "presale:event.index" as url %}
{% if e.settings.show_dates_on_frontpage %} {{ e.daterange|default:e.get_date_range_display_as_html }} {% if e.settings.show_times and not e.has_subevents %} {% timezone e.tzname %}
{{ e.date_from|date:"TIME_FORMAT" }} {% if e.settings.show_date_to and e.date_to and e.date_to.date == e.date_from.date %} – {{ e.date_to|date:"TIME_FORMAT" }} {% endif %} {% endtimezone %} {% endif %} {% else %}   {% endif %}
{% if e.has_subevents %} {% trans "Event series" %} {% elif e.presale_is_running and request.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 %} {% if e.has_paid_item %} {% trans "Sold out" %} {% else %} {% trans "Fully booked" %} {% endif %} {% 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.effective_presale_start|date:"SHORT_DATE_FORMAT" %} Sale starts {{ date }} {% endblocktrans %} {% else %} {% trans "Not yet on sale" %} {% endif %}
{% endfor %}
{% endif %} {% if "old" in request.GET %}

{% if not events %}{% trans "No archived events found." %} {% endif %}{% trans "Show upcoming" %}

{% else %}

{% if not events %}{% trans "No public upcoming events found." %} {% endif %}{% trans "Show past events" %}

{% endif %} {% include "pretixpresale/pagination.html" %} {% endblock %}