diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-04-18 16:53:36 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-04-18 16:53:36 +0200 |
commit | cc22cc33542bafaf75aaf4d051a62c1e59547942 (patch) | |
tree | b2d7f45ceae14603436e268dc2c1b5b5bda8fa8d | |
parent | 3bba736bfe864586c6d12c41787d195f650f2fdf (diff) |
show departure platform (if available) in infoscreen mode
-rw-r--r-- | public/static/infoscreen.css | 5 | ||||
-rw-r--r-- | templates/infoscreen.html.ep | 5 |
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> % } |