{% extends "base.html" %} {% block travel %} {% endblock %} {% macro display_datetime(dt) %}{{ dt.strftime("%a, %d, %b %Y %H:%M %z") }}{% endmacro %} {% macro display_time(dt) %}{{ dt.strftime("%H:%M %z") }}{% endmacro %} {% block style %} {% endblock %} {% block content %}

Travel

← back to agenda

flights

date
route
take-off
land
duration
flight
reference
{% for item in flights | sort(attribute="depart") if item.arrive %}
{{ item.depart.strftime("%a, %d %b %Y") }}
{{ item.from }} → {{ item.to }}
{{ item.depart.strftime("%H:%M") }}
{% if item.arrive %} {{ item.arrive.strftime("%H:%M") }} {% if item.arrive.date() != item.depart.date() %}+1 day{% endif %} {% endif %}
{{ item.duration }}
{{ item.airline }}{{ item.flight_number }}
{{ item.booking_reference }}
{% endfor %}

trains

date
route
depart
arrive
operator
reference
{% for item in trains | sort(attribute="depart") if item.arrive %}
{{ item.depart.strftime("%a, %d %b %Y") }}
{{ item.from }} → {{ item.to }}
{{ item.depart.strftime("%H:%M") }}
{% if item.arrive %} {{ item.arrive.strftime("%H:%M") }} {% if item.arrive.date() != item.depart.date() %}+1 day{% endif %} {% endif %}
{{ item.operator }}
{{ item.booking_reference }}
{% endfor %}
{% endblock %}