File indexing completed on 2025-03-09 04:46:52

0001 <table style="width:100%;">
0002     <tr>
0003         <td style="font-size:120%; width:33;">
0004             {{ trip.departureBoatTerminal.name }}
0005             {% with trip.departureBoatTerminal as location %}{% include "org.kde.messageviewer/itinerary/location.html" %}{% endwith %}
0006         </td>
0007         <td style="font-size:120%; width:33%; text-align:center;">
0008         {% if elem.reservations.0.reservation.reservationStatus == 1 %}
0009             {% icon "dialog-cancel" sizesmallmedium _("Reservation canceled.") %}
0010         {% else %}
0011             &rarr;
0012         {% endif %}
0013         </td>
0014         <td style="font-size:120%; width:33%;">
0015             {{ trip.arrivalBoatTerminal.name }}
0016             {% with trip.arrivalBoatTerminal as location %}{% include "org.kde.messageviewer/itinerary/location.html" %}{% endwith %}
0017         </td>
0018     </tr>
0019     <tr>
0020         <td>{{ trip.departureTime|formatDateTime }}</td>
0021         <td style="white-space: nowrap; text-align:center;">
0022         <!-- TODO boat name not yet available -->
0023         </td>
0024         <td>{{ trip.arrivalTime|formatDateTime }}</td>
0025     </tr>
0026     <tr><td colspan="3">
0027         <div style="float:left">
0028         {% if elem.reservations.0.ticketToken or elem.reservations.size > 1 %}
0029             <a href="x-kmail:/bodypart/0//semanticExpand?{{ forloop.counter0 }}">
0030             {% if elem.state.expanded %}
0031                 <img src="{{ style.collapseIcon }}" style="margin-right: 4px;"/>
0032             {% else %}
0033                 <img src="{{ style.expandIcon }}" style="margin-right: 4px;"/>
0034             {% endif %}
0035             </a>
0036         {% endif %}
0037         </div>
0038         {% include "org.kde.messageviewer/itinerary/actions.html" %}
0039     </td></tr>
0040 </table>
0041 
0042 {% if elem.state.expanded %}
0043     {% for d in elem.reservations %}
0044         {% with d.reservation as res %}
0045         <div>
0046         {% if res.underName.name %}
0047             {{ res.underName.name }}
0048         {% endif %}
0049         {% if res.reservedTicket.name %}
0050             ({{ res.reservedTicket.name }})
0051         {% endif %}
0052         </div>
0053         {% if d.ticketToken %}
0054             <div style="text-align:center;">
0055                 <div style="background-color: #ffffff; display: inline-block; padding: 4px;">
0056                 <img src="{{ d.ticketToken }}"/>
0057                 </div>
0058             </div>
0059         {% endif %}
0060         {% if elem.reservations.size > 1 %}
0061             {% include "org.kde.messageviewer/itinerary/actions.html" %}
0062         {% endif %}
0063         {% endwith %}
0064     {% endfor %}
0065 {% endif %}