{% extends 'base.html.twig' %} {% block title %}Browse events — VINDN{% endblock %} {% block head_extra %} {% include '_datepicker_head.html.twig' %} {% endblock %} {% block body %}

All events

{{ q ? 'Searching: "' ~ q ~ '"' : "What's on" }}{{ activeCategory ? ' — ' ~ activeCategory : '' }}

{{ total|de_number }} event{{ total == 1 ? '' : 's' }}

{% if activeCategory %}{% endif %} {% if dateFrom %}{% endif %} {% if dateTo %}{% endif %} {% if hasLocation %} {% endif %}
{% set activeCount = (activeCategory ? 1 : 0) + (dateFrom or dateTo ? 1 : 0) + (hasLocation ? 1 : 0) %}
{% if activeCategory %} {{ activeCategory }} {% endif %} {% if dateFrom or dateTo %} {% if dateFrom == today and dateTo == today %}{% set dateLabel = 'Today' %} {% elseif dateFrom == today and dateTo == weekEnd %}{% set dateLabel = 'Next 7 days' %} {% elseif dateFrom and dateTo and dateFrom == dateTo %}{% set dateLabel = dateFrom|date('d.m.Y') %} {% elseif dateFrom and dateTo %}{% set dateLabel = dateFrom|date('d.m.Y') ~ ' – ' ~ dateTo|date('d.m.Y') %} {% elseif dateFrom %}{% set dateLabel = 'From ' ~ dateFrom|date('d.m.Y') %} {% else %}{% set dateLabel = 'Until ' ~ dateTo|date('d.m.Y') %}{% endif %} {{ dateLabel }} {% endif %} {% if hasLocation %} Within {{ rangeKm }} km of {{ lat|de_number(3) }}, {{ lon|de_number(3) }} {% endif %} {% if activeCount %} Clear all {% endif %}
{% if q %}{% endif %} {% if filters.sort %}{% endif %}

Filters

Category
{% for category in categories %} {% endfor %}
When
Near a location

{% if hasLocation %}Within {{ rangeKm }} km of {{ lat|de_number(3) }}, {{ lon|de_number(3) }}{% endif %}

{% for event in events %} {% include 'events/_card.html.twig' with { event: event, dist: hasLocation ? distances[event.id]|default(null) : null } %} {% else %}

No events

Nothing matches those filters yet — try clearing one, or check back once the importer has run.

{% endfor %}
{% include '_pager.html.twig' with { currentPage: page, totalPages: totalPages, routeName: 'event_list', routeParams: filters } %}
{% endblock %} {% block scripts %} {% include '_datepicker_scripts.html.twig' %} {% endblock %}