summaryrefslogtreecommitdiff
path: root/templates/infoscreen.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-10-08 13:23:34 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-10-08 13:23:34 +0200
commit698dbb9ee9bd8e4facefd269d4851aa148912c00 (patch)
treeaacb1c527d4b540478df4d5238bac42fec02b735 /templates/infoscreen.html.ep
parenta96e2d5682e91014b4e071d80b74bcd1ae674b9a (diff)
update for new Travel::Status::DE::URA(::Result) API
Diffstat (limited to 'templates/infoscreen.html.ep')
-rw-r--r--templates/infoscreen.html.ep18
1 files changed, 3 insertions, 15 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index 4a4f309..1c0974f 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -46,17 +46,12 @@
% if ($departure->can('lineref') and $departure->lineref) {
%= $departure->lineref->route
% }
-% elsif ($departure->can('route_pre') and $departure->can('route_post')) {
-% if ($departure->route_pre) {
-%= ($departure->route_pre)[0]->name
-% }
-% if ($departure->route_post) {
-% ($departure->route_post)[-1]->name
-% }
+% else {
+%= $departure->destination
% }
</span> <!-- train-route -->
</div> <!-- mheader -->
-% if ($departure->can('route_pre')) {
+% if ($departure->isa('Travel::Status::DE::EFA::Result')) {
Fahrplan:
<table class="scheduled">
% for my $stop ($departure->route_pre) {
@@ -112,13 +107,6 @@
% elsif ($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> <!-- route -->
<span class="dest">
%= $departure->destination