summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-01-16 17:11:00 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-01-16 17:11:00 +0100
commit7f8a6a2b410a1cbae4d9dbffa6340d159af30ded (patch)
treeb0057530fdd91e294efad8463b690fb28ba84691
parentd643811cf90c5c8874087f200e68910b729473de (diff)
ASEAG backend: show full routes
-rw-r--r--index.pl1
-rw-r--r--templates/infoscreen.html.ep7
2 files changed, 8 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 1fe3f3d..637bdb1 100644
--- a/index.pl
+++ b/index.pl
@@ -61,6 +61,7 @@ sub get_results {
elsif ( $backend eq 'aseag' ) {
$status = Travel::Status::DE::ASEAG->new(
stop => ( $city ? "${city} ${stop}" : $stop ),
+ full_routes => 'after',
);
}
else {
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