summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-04-19 11:55:49 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-04-19 11:55:49 +0200
commit50d8256f6f0bb05416d67c4910d014eb1d91677f (patch)
treef15074984e6404d036adfbed8b867265a112a7da /templates
parenta3ea4fde954a5a854c261fc3fa76a92b7eda982f (diff)
connections: do not show platform if it is unknown
Diffstat (limited to 'templates')
-rw-r--r--templates/_connections.html.ep10
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>