{% extends "base.html" %} {% from "macros.html" import trip_link, accommodation_row with context %} {% block title %}Accommodation - Edward Betts{% endblock %} {% block style %} {% set column_count = 9 %} {% endblock %} {% macro section(heading, item_list, badge) %} {% if item_list %}

{{heading}}

{% for item in item_list %} {{ accommodation_row(item, badge) }}
{% if item.linked_trip %} trip: {{ trip_link(item.linked_trip) }} {% endif %}
{% endfor %} {% endif %} {% endmacro %} {% block content %}

Accommodation

{{ section("Past", past) }} {{ section("Current", current) }} {{ section("Future", future) }}
{% endblock %}