From 7f8a6a2b410a1cbae4d9dbffa6340d159af30ded Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 16 Jan 2015 17:11:00 +0100 Subject: ASEAG backend: show full routes --- templates/infoscreen.html.ep | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'templates/infoscreen.html.ep') 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 ); +% } %= $departure->destination -- cgit v1.2.3