From 50d8256f6f0bb05416d67c4910d014eb1d91677f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 19 Apr 2020 11:55:49 +0200 Subject: connections: do not show platform if it is unknown --- templates/_connections.html.ep | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep index d4f5bb1..b44841b 100644 --- a/templates/_connections.html.ep +++ b/templates/_connections.html.ep @@ -50,7 +50,9 @@ % if ($train->departure_delay) { %= sprintf('(%+d)', $train->departure_delay) % } -
Gleis <%= $train->platform || '?' %> + % if ($train->platform) { +
Gleis <%= $train->platform %> + % } % } @@ -108,10 +110,10 @@ % } % } - % if (not $train->departure_is_cancelled) { - Gleis <%= $train->platform || '?' %> + % if ($train->platform and not $train->departure_is_cancelled) { + Gleis <%= $train->platform %> % } - % else { + % elsif ($train->departure_is_cancelled) { fällt aus % } -- cgit v1.2.3