Source

django-cms-simple-events / simple_events / templates / simple_events / events_archive.html

{% extends "base.html" %}
{% load i18n %}
{% block content %}
<div class="events">
{% regroup events by has_passed as events_list %}
{% for status in events_list %}
    {% if status.grouper %}
    <h1>{% trans "Past events" %}</h1>
    {% else %}
    <h1>{% trans "Next events" %}</h1>
    {% endif %}
    {% regroup status.list by start as events_start %}
    <div class="day">
    {% for dates in events_start %}
        <h2>{{ dates.grouper }}</h2>
        <ul>
        {% for event in dates.list %}
            {# % if not event.has_passed % #}
            <li><a href="{% url event_detail event.id %}" title="{{ event.name }}">{{ event.name }}</a></li>
            {# % endif % #}
        {% endfor %}
        </ul>
    {% endfor %}
    </div>
{% endfor %}
{% endblock %}
</div>