{% if event_view == "upcoming" %}{% trans "Planned Events" %}{% elif event_view == "past" %}{% trans "Past Events" %}{% else %}{% trans "Events" %}{% endif %}
{% endblock %}
{% block leftnav %}
{% include "cosinnus_event/leftnav.html" %}
{% endblock leftnav %}
{% block content %}
{% if not request.user or not request.user.is_authenticated %}
{% include "cosinnus/not_logged_in_alert.html" %}
{% endif %}
{% include 'cosinnus/common/filter_controls.html' %}
{% for event in past_events %}
{% include 'cosinnus_event/list_object.html' %}
{% empty %}
{% include 'cosinnus/common/empty_button.html' with message="There are no past events." %}
{% endfor %}