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 ++++++- templates/layouts/app.html.ep | 2 +- templates/layouts/legacy.html.ep | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'templates') 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 { diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index 83d425c..78f8ebf 100644 --- a/templates/layouts/app.html.ep +++ b/templates/layouts/app.html.ep @@ -18,7 +18,7 @@ % } - % my $av = 'v45'; # asset version + % my $av = 'v46'; # asset version % if (session('theme') and session('theme') eq 'dark' or param('dark')) { %= stylesheet "/static/${av}/css/dark.min.css", id => 'theme' % } diff --git a/templates/layouts/legacy.html.ep b/templates/layouts/legacy.html.ep index 6d9c189..448315e 100644 --- a/templates/layouts/legacy.html.ep +++ b/templates/layouts/legacy.html.ep @@ -17,7 +17,7 @@ % } - % my $av = 'v45'; # asset version + % my $av = 'v46'; # asset version %= stylesheet "/static/${av}/css/default.css" %= stylesheet "/static/${av}/css/material-icons.css" %= stylesheet "/static/${av}/css/jquery-ui.min.css" -- cgit v1.2.3