From 32d2097986093cb8c5cf7a769328d97b3e61145f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 20 Sep 2020 10:59:58 +0200 Subject: fix route real-time display for requested stop --- templates/_train_details.html.ep | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index a7ad86e..9e7a7f2 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -173,7 +173,19 @@ % } % } -
  • <%= $departure->{departure} // $departure->{arrival} // q{} %> <%= $station_name %>
  • +
  • <%= $departure->{sched_departure} // $departure->{sched_arrival} // q{} %> +% if ($departure->{sched_departure}) { +% if ($departure->{departure} ne $departure->{sched_departure}) { + (heute <%= $departure->{departure} %>) +% } +% } +% elsif ($departure->{arrival}) { +% if ($departure->{arrival} ne $departure->{sched_arrival}) { + (heute <%= $departure->{arrival} %>) +% } +% } + <%= $station_name %> +
  • % for my $stop (@{$departure->{route_post_diff}}) {