<table style="width:100%;">
    <tr>
        <td style="font-size:120%; width:33;">
            {{ trip.departureStation.name }}
            {% if trip.departurePlatform %}
                [{{ trip.departurePlatform }}]
            {% endif %}
        </td>
        <td style="font-size:120%; width:33%; text-align:center;">&rarr;</td>
        <td style="font-size:120%; width:33%;">
            {{ trip.arrivalStation.name}}
            {% if trip.arrivalPlatform %}
                [{{ trip.arrivalPlatform }}]
            {% endif %}
        </td>
    </tr>
    <tr>
        <td>{{ trip.departureTime|formatDateTime }}</td>
        <td style="white-space: nowrap; text-align:center;">
            {% if trip.busName and trip.busNumber %}
                {{ trip.busName }} <br> {{ trip.busNumber }}
            {% else %}
                {{ trip.busName }} {{ trip.busNumber }}
            {% endif %}
        </td>
        <td>{{ trip.arrivalTime|formatDateTime }}</td>
    </tr>
    <tr><td colspan="3">
        <div style="float:left">
        {% if elem.reservations.0.ticketToken %}
            <a href="x-kmail:/bodypart/0//semanticExpand?{{ forloop.counter0 }}">
            {% if elem.state.expanded %}
                <img src="{{ style.collapseIcon }}" style="margin-right: 4px;"/>
            {% else %}
                <img src="{{ style.expandIcon }}" style="margin-right: 4px;"/>
            {% endif %}
            </a>
        {% endif %}

        {% if res.reservedTicket.ticketedSeat.seatNumber %}
            {% i18n "Seat: %1" res.reservedTicket.ticketedSeat.seatNumber %}
        {% endif %}
        </div>
        {% include ":/org.kde.messageviewer/semantic/actions.html" %}
    </td></tr>
</table>

{% if elem.state.expanded %}
    <div style="text-align:center;">
        <div style="background-color: #ffffff; display: inline-block; padding: 4px;">
        <img src="{{ elem.reservations.0.ticketToken }}"/>
        </div>
    </div>
{% endif %}
