From 1c7779e94ef6859348570b9c1b5f2f8a27e32c1f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 24 Sep 2022 18:51:23 +0200 Subject: connections: move departure time to line this way, departure time is left of arrival at destination, hopefully minimizing confusion --- templates/_connections.html.ep | 25 +++++++++++++------------ 1 file 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 % } +
+ % 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) + % } + % } % if ($checkin_from) { @@ -49,18 +60,8 @@ % } - % if ($train->departure_is_cancelled) { - %= $train->sched_departure->strftime('%H:%M') - ⊖ - % } - % else { - % if ($train->platform) { - Gleis <%= $train->platform %>
- % } - %= $train->departure->strftime('%H:%M') - % if ($train->departure_delay) { - %= sprintf('(%+d)', $train->departure_delay) - % } + % if ($train->platform) { + Gleis <%= $train->platform %>
% } -- cgit v1.2.3