From 9bba5357b84fa048e8f4afd424480d3c5b909466 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 22 Jun 2017 06:52:48 +0200 Subject: Format platform line like arrival/departure lines in infoscreen detail view --- templates/clean.html.ep | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 1c64c20..eee9f03 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -98,12 +98,12 @@
-% if ($departure->{platform}) { - Gleis <%= $departure->{platform} %> +% if ($departure->{scheduled_platform} or $departure->{platform}) { + Gleis <%= $departure->{scheduled_platform} // $departure->{platform} %> % } % if ($departure->{scheduled_platform} and $departure->{platform} % and $departure->{scheduled_platform} ne $departure->{platform}) { - (nicht Gleis <%= $departure->{scheduled_platform} %>) + (heute Gleis <%= $departure->{platform} %>) % } % elsif ($departure->{changed_platform}) { (Gleiswechsel) -- cgit v1.2.3 From 678d410e44ed8b36d21b2f1b720a9cb77d213e56 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 25 Jun 2017 11:39:14 +0200 Subject: decrease lookbehind --- index.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.pl b/index.pl index 4981f93..5044713 100644 --- a/index.pl +++ b/index.pl @@ -75,7 +75,7 @@ sub get_results_for { station => $station, main_cache => $cache_iris_main, realtime_cache => $cache_iris_rt, - lookbehind => 60, + lookbehind => 20, %opt ); $data = { -- cgit v1.2.3