{% extends "base.html" %} {% block title %}{{ trip.title }} ({{ display_date(trip.start) }}){% endblock %} {% from "macros.html" import trip_link, 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 %} {% if coordinates %} {% endif %} {% set conference_column_count = 7 %} {% set accommodation_column_count = 7 %} {% set travel_column_count = 8 %} {% 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 %}
{% if holidays %}

Holidays

{% for item in holidays %} {% set country = get_country(item.country) %} {% if loop.first or item.date != loop.previtem.date %} {% else %} {% endif %} {% endfor %}
{{ display_date(item.date) }}{{ country.flag }} {{ country.name }} {{ item.display_name }}
{% endif %}

{% if prev_trip %} previous: {{ trip_link(prev_trip) }} ({{ (trip.start - prev_trip.end).days }} days) {% endif %} {% if next_trip %} next: {{ trip_link(next_trip) }} ({{ (next_trip.start - trip.end).days }} days) {% endif %}

{% if coordinates %}
{% endif %}
{% endblock %} {% block scripts %} {% if coordinates %} {% endif %} {% endblock %}