From 163e0ffdd560896edb5f91a602f5b1586f46f110 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 5 Feb 2023 12:38:42 +0100 Subject: train details: handle trains that only have sched_ times (hello, hafas) --- templates/_train_details.html.ep | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'templates') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 05e3483..82f0257 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -64,6 +64,9 @@ An: <%= $departure->{arrival} %> % } % } +% elsif ($departure->{sched_arrival}) { + An: <%= $departure->{sched_arrival} %> +% } % elsif ($departure->{prep_time}) { Ein: <%= $departure->{prep_time} %> % } @@ -115,6 +118,9 @@ % else { Ab: <%= $departure->{departure} %> % } +% } +% elsif ($departure->{sched_departure}) { + Ab: <%= $departure->{sched_departure} %> % } -- cgit v1.2.3