summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/infoscreen.html.ep7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index 6d4ff72..45f2772 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -41,6 +41,13 @@
% if ($departure->can('lineref') and $departure->lineref) {
%= $departure->lineref->route
% }
+% elsif ($departure->can('route_timetable')) {
+% my @first_deps = ($departure->route_timetable)[0..2];
+% delete $first_deps[2] unless defined $first_deps[2];
+% delete $first_deps[1] unless defined $first_deps[1];
+% delete $first_deps[0] unless defined $first_deps[0];
+%= join(' - ', map { $_->[1] } @first_deps );
+% }
</span>
<span class="dest">
%= $departure->destination