summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-12-18 15:12:36 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-12-18 15:12:36 +0100
commitbcc90ffec5bcc389e60ff833253b66419c53834c (patch)
tree3b2f7af6042364fbcaa876fa0c3742602d9ac164 /templates
parentfbb1fb9818cab96035e6071abc8b259168701195 (diff)
fix infoscreen display bug in case of empty/undefined platforms
Diffstat (limited to 'templates')
-rw-r--r--templates/infoscreen.html.ep6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index 2980806..145c831 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -179,12 +179,12 @@
% else {
%= $departure->time
% }
- <span class="platform">
% if ($departure->can('platform') and $departure->platform) {
-%= $departure->platform
+ <span class="platform">
+%= $departure->platform
+ </span>
% }
</span>
- </span>
</li>
% }
</ul>