Source

django-basic-events / events / templates / events / category.html

Full commit
{% extends 'events/base.html' %}

{% block title %}{{ category }}{% endblock %}

{% block content %}
<h1>{{ category }}</h1>
{% if category.description %}
    {{ category.description|safe }}
{% endif %}

<h2>{{ category }} Events</h2>

{% if upcoming_events %}
    {% with upcoming_events as events %}
        {% include 'events/_list_view.html' %}
    {% endwith %}
{% endif %}

{% if previous_events %}
    {% with previous_events as events %}
        {% include 'events/_list_view.html' %}
    {% endwith %}
{% endif %}

{% endblock %}