{% if trip.departureAirport.iataCode %} {{ trip.departureAirport.iataCode }} {% else %} {{ trip.departureAirport.name }} {% endif %} {% with trip.departureAirport as location %}{% include "org.kde.messageviewer/itinerary/location.html" %}{% endwith %} {% if elem.reservations.0.reservation.reservationStatus == 1 %} {% icon "dialog-cancel" sizemedium _("Reservation canceled.") %} {% else %} ✈ {% endif %} {% if trip.arrivalAirport.iataCode %} {{ trip.arrivalAirport.iataCode }} {% else %} {{ trip.arrivalAirport.name }} {% endif %} {% with trip.arrivalAirport as location %}{% include "org.kde.messageviewer/itinerary/location.html" %}{% endwith %}
{% if trip.departureTime %} {{ trip.departureTime|formatDateTime }} {% else %} {{ trip.departureDay|formatDate }} {% endif %} {{ trip.airline.iataCode }} {{ trip.flightNumber }} {{ trip.arrivalTime|formatDateTime }}
{% if elem.reservations.0.ticketToken or elem.reservations.size > 1 %} {% if elem.state.expanded %} {% else %} {% endif %} {% endif %} {% if trip.departureGate %} {% i18n "Gate: %1" trip.departureGate %} {% endif %} {% if trip.boardingTime %} {% i18n "Boarding: %1" trip.boardingTime|formatTime %} {% endif %} {% if res.boardingGroup and elem.reservations.size == 1 and not elem.state.expanded %} {% i18n "Group: %1" res.boardingGroup %} {% endif %} {% if res.airplaneSeat and elem.reservations.size == 1 and not elem.state.expanded %} {% i18n "Seat: %1" res.airplaneSeat %} {% endif %}
{% if elem.reservations.size == 1 %} {% include "org.kde.messageviewer/itinerary/actions.html" %} {% endif %}
{% if elem.state.expanded %} {% for d in elem.reservations %} {% with d.reservation as res %} {% if res.underName.name %}
{{ res.underName.name }}
{% endif %}
{% if res.boardingGroup %} {% i18n "Group: %1" res.boardingGroup %} {% endif %} {% if res.airplaneSeat %} {% i18n "Seat: %1" res.airplaneSeat %} {% endif %}
{% if d.ticketToken %}
{% endif %} {% if elem.reservations.size > 1 %} {% include "org.kde.messageviewer/itinerary/actions.html" %} {% endif %} {% endwith %} {% endfor %} {% endif %}