summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-04-18 16:53:36 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-04-18 16:53:36 +0200
commitcc22cc33542bafaf75aaf4d051a62c1e59547942 (patch)
treeb2d7f45ceae14603436e268dc2c1b5b5bda8fa8d
parent3bba736bfe864586c6d12c41787d195f650f2fdf (diff)
show departure platform (if available) in infoscreen mode
-rw-r--r--public/static/infoscreen.css5
-rw-r--r--templates/infoscreen.html.ep5
2 files changed, 10 insertions, 0 deletions
diff --git a/public/static/infoscreen.css b/public/static/infoscreen.css
index 617413c..83ddd1f 100644
--- a/public/static/infoscreen.css
+++ b/public/static/infoscreen.css
@@ -129,6 +129,11 @@ div.displayclean li > .time {
top:5px;
}
+div.displayclean li > .time > .platform {
+ color: black;
+ margin-left: 0.2em;
+}
+
div.displayclean li .moreinfo {
color:#000000;
font-size:2.1em;
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index 0778d1f..8ff8d96 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -169,6 +169,11 @@
% else {
%= $departure->time
% }
+ <span class="platform">
+% if ($departure->can('platform') and $departure->platform) {
+%= $departure->platform
+% }
+ </span>
</span>
</li>
% }