summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-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