From c0c77e9020b0a0700da55b170d03877031fd57f6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 19 Mar 2021 21:35:17 +0100 Subject: details: show early arrivals in green early departures will still be red --- templates/_train_details.html.ep | 7 ++++++- 1 file changed, 6 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 e1f242f..6b3e1a7 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -55,7 +55,12 @@ % } % elsif ($departure->{arrival}) { % if ($departure->{arrival} ne $departure->{sched_arrival}) { - An: <%= $departure->{arrival} %> + % if ($departure->{delay} < 0) { + An: <%= $departure->{arrival} %> + % } + % else { + An: <%= $departure->{arrival} %> + % }
Plan: <%= $departure->{sched_arrival} %> % } % else { -- cgit v1.2.3