{% extends "base.html" %} {% block title %}Weekends - Edward Betts{% endblock %} {% block content %}

Weekends

{% for weekend in items %} {% for day in "saturday", "sunday" %} {% endfor %} {% endfor %}
Week Date Saturday Sunday
{{ weekend.date.isocalendar().week }} {{ weekend.date.strftime("%-d %b %Y") }} {% if weekend[day] %} {% for event in weekend[day] %} {{ event.title }}{% if not loop.last %},{%endif %} {% endfor %} {% else %} free {% endif %}
{% endblock %}