{% extends "base.html" %} {% block title %}Weekends - Edward Betts{% endblock %} {% block content %}
Week | Date | Saturday | Saturday Location | Sunday | Sunday Location |
---|---|---|---|---|---|
{{ week_number }} | {{ weekend.date.strftime("%-d %b %Y") }} | {% for day in "saturday", "sunday" %} {% if extra_class %}{% else %} | {% endif %} {% if weekend[day] %} {% for event in weekend[day] %} {{ event.title }}{% if not loop.last %},{%endif %} {% endfor %} {% else %} free {% endif %} | {% if extra_class %}{% else %} | {% endif %} {% set city, country = weekend[day + '_location'] %} {% if city == "Bristol" and country.alpha_2 | upper == "GB" %} home {% else %} {{ city }}, {{ country.flag }} {{ country.name }} {% endif %} | {% endfor %}