summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-12-19 18:08:10 +0100
committerVolker Krause <[email protected]>2017-12-19 18:24:35 +0100
commit070a471aa28d3471c4b2dd2d04bfcff4f5b3aab6 (patch)
tree1aa528062350d6a39375833a86a27e50da607f26
parentcb361f58125fd3c7d2e9a04280451e9240c50a22 (diff)
Show platforms in the train reservation summary, if available
-rw-r--r--plugins/messageviewer/bodypartformatter/semantic/templates/trainreservation.html15
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/messageviewer/bodypartformatter/semantic/templates/trainreservation.html b/plugins/messageviewer/bodypartformatter/semantic/templates/trainreservation.html
index 7c35ece..64e434b 100644
--- a/plugins/messageviewer/bodypartformatter/semantic/templates/trainreservation.html
+++ b/plugins/messageviewer/bodypartformatter/semantic/templates/trainreservation.html
@@ -1,9 +1,18 @@
<table style="width:100%;">
<tr>
- <!-- TODO show platforms if available -->
- <td style="font-size:120%; width:33;">{{ item.reservationFor.departureStation.name }}</td>
+ <td style="font-size:120%; width:33;">
+ {{ item.reservationFor.departureStation.name }}
+ {% if item.reservationFor.departurePlatform %}
+ [{{ item.reservationFor.departurePlatform }}]
+ {% endif %}
+ </td>
<td style="font-size:120%; width:33%; text-align:center;">&rarr;</td>
- <td style="font-size:120%; width:33%;">{{ item.reservationFor.arrivalStation.name}}</td>
+ <td style="font-size:120%; width:33%;">
+ {{ item.reservationFor.arrivalStation.name}}
+ {% if item.reservationFor.arrivalPlatform %}
+ [{{ item.reservationFor.arrivalPlatform }}]
+ {% endif %}
+ </td>
</tr>
<tr>
<td>{{ item.reservationFor.departureTimeLocalized }}</td>