diff options
-rw-r--r-- | templates/_connections.html.ep | 10 |
1 files 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) % } - <br/>Gleis <%= $train->platform || '?' %> + % if ($train->platform) { + <br/>Gleis <%= $train->platform %> + % } % } </td> </tr> @@ -108,10 +110,10 @@ % } % } </td><td> - % 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 % } </td> |