From 49463c761974b19826a16270c9e884a4fc298a31 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 14 Jan 2023 09:54:26 +0100 Subject: train details: show expected arrival time at first stop, if available --- templates/_train_details.html.ep | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'templates/_train_details.html.ep') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 3e07cf8..ab6ea45 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -63,6 +63,9 @@ % else { An: <%= $departure->{arrival} %> % } +% } +% elsif ($departure->{prep_time}) { + Ein: <%= $departure->{prep_time} %> % } @@ -88,7 +91,7 @@ <%= $left %>Gleis <%= $departure->{platform} // $departure->{scheduled_platform} %><%= $right %> % } % } -% if ($departure->{arrival_hidden}) { +% if ($departure->{arrival_hidden} and not $departure->{prep_time}) {
Nur Einstieg % } % if ($departure->{departure_hidden}) { -- cgit v1.2.3