summaryrefslogtreecommitdiff
path: root/templates/_connections.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_connections.html.ep')
-rw-r--r--templates/_connections.html.ep25
1 files changed, 13 insertions, 12 deletions
diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep
index c9cd0fe..324dfab 100644
--- a/templates/_connections.html.ep
+++ b/templates/_connections.html.ep
@@ -21,6 +21,17 @@
% else {
%= $train->line
% }
+ <br/>
+ % if ($train->departure_is_cancelled) {
+ %= $train->sched_departure->strftime('%H:%M')
+ ⊖
+ % }
+ % else {
+ %= $train->departure->strftime('%H:%M')
+ % if ($train->departure_delay) {
+ %= sprintf('(%+d)', $train->departure_delay)
+ % }
+ % }
</td>
<td class="<%= $td_class %>">
% if ($checkin_from) {
@@ -49,18 +60,8 @@
% }
</td>
<td>
- % if ($train->departure_is_cancelled) {
- %= $train->sched_departure->strftime('%H:%M')
- ⊖
- % }
- % else {
- % if ($train->platform) {
- Gleis <%= $train->platform %><br/>
- % }
- %= $train->departure->strftime('%H:%M')
- % if ($train->departure_delay) {
- %= sprintf('(%+d)', $train->departure_delay)
- % }
+ % if ($train->platform) {
+ Gleis <%= $train->platform %><br/>
% }
</td>
</tr>