{% extends "pretixpresale/organizers/base.html" %} {% load i18n %} {% load date_fast %} {% load icon %} {% load rich_text %} {% load tz %} {% load eventurl %} {% load urlreplace %} {% load textbubble %} {% 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 %}
{% include "pretixpresale/fragment_calendar_nav.html" with date=date request=request style="list" %}

{% if "old" in request.GET %} {% trans "Past events" %} {% else %} {% trans "Upcoming events" %} {% endif %}

{% if filter_form.fields %}
{% include "pretixpresale/fragment_event_list_filter.html" with request=request %}
{% endif %} {% if events %}
{% for e in events %}{% eventurl e "presale:event.index" as url %}
{{ e.name }}
{% if e.settings.show_dates_on_frontpage %} {% if e.has_subevents %} {% icon "calendar" %} {% trans "Multiple dates" context "subevent" %}
{{ e.daterange|default:e.get_date_range_display_as_html }} {% else %} {{ e.daterange|default:e.get_date_range_display_as_html }} {% if e.settings.show_times %} {% timezone e.tzname %}
{% icon "clock-o" %} {% if e.settings.show_date_to and e.date_to and e.date_to.date == e.date_from.date %} {% trans "until" context "timerange" %} {% endif %} {% endtimezone %} {% endif %} {% endif %} {% else %}   {% endif %}
{% include "pretixpresale/fragment_event_list_status.html" with event=e %}
{% if e.has_subevents %}{% icon "ticket" %} {% trans "Tickets" %} {% elif e.presale_is_running and e.best_availability_state == 100 %} {% icon "ticket" %} {% trans "Tickets" %} {% else %} {% icon "info" %} {% trans "More info" %} {% 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 %}