{% extends "base.html" %} {% block style %} {% endblock %} {% macro row(item, badge) %}
{{ item.start.strftime("%a, %d %b %Y") }}
{{ item.end.strftime("%a, %d %b") }}
{{ item.name }} {% if item.going and not (item.accommodation_booked or item.travel_booked) %} {{ badge }} {% endif %} {% if item.accommodation_booked %} accommodation {% endif %} {% if item.transport_booked %} transport {% endif %}
{{ item.topic }}
{{ item.location }}
{{ item.url }}
{% endmacro %} {% macro section(heading, item_list, badge) %} {% if item_list %}

{{heading}}

{% for item in item_list %}{{ row(item, badge) }}{% endfor %} {% endif %} {% endmacro %} {% block content %}

Conferences

{{ section("Current", current, "attending") }} {{ section("Future", future, "going") }} {{ section("Past", past|reverse, "went") }}
{% endblock %}