From 45a4089431002ee01b11880d463dd3513b0657ca Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 25 May 2019 23:04:36 +0200 Subject: Handle missing platform numbers --- templates/_connections.html.ep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/_connections.html.ep') diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep index d421d4e..2506829 100644 --- a/templates/_connections.html.ep +++ b/templates/_connections.html.ep @@ -22,7 +22,7 @@ % if ($train->departure_delay) { %= sprintf('(%+d)', $train->departure_delay) % } -
Gleis <%= $train->platform %> +
Gleis <%= $train->platform || '?' %> % } @@ -50,7 +50,7 @@ % if ($train->departure_delay) { %= sprintf('(%+d)', $train->departure_delay) % } - Gleis <%= $train->platform %> + Gleis <%= $train->platform || '?' %> % } -- cgit v1.2.3