{% extends "base.html" %} {% from "macros.html" import display_date_no_year, display_date, conference_row, accommodation_row, flight_row, train_row with context %} {% set row = { "flight": flight_row, "train": train_row } %} {% block style %} {% set conference_column_count = 6 %} {% set accommodation_column_count = 7 %} {% set travel_column_count = 7 %} {% endblock %} {% set end = trip.end %} {% block content %}

{{ trip.title }}({{ display_date(trip.start) }})

Countries: {{ trip.countries_str }}
{% if end %}
Dates: {{ display_date_no_year(trip.start) }} to {{ display_date_no_year(end) }}
{% else %}
Start: {{ display_date_no_year(trip.start) }} (end date missing)
{% endif %}
{% for conf in trip.conferences %} {{ conference_row(conf, "going") }} {% endfor %}
{% for conf in trip.accommodation %} {{ accommodation_row(conf, "going") }} {% endfor %}
{% for item in trip.travel %} {{ row[item.type](item) }} {% endfor %}
{#
{{ trip | pprint }}
#}
{% endblock %}