summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.pl7
-rw-r--r--templates/clean.html.ep19
2 files changed, 2 insertions, 24 deletions
diff --git a/index.pl b/index.pl
index b4db45c..4d5a013 100644
--- a/index.pl
+++ b/index.pl
@@ -371,11 +371,8 @@ sub handle_request {
my $platform = ( split( / /, $result->platform ) )[0];
my $line = $result->line;
my $delay = $result->delay;
- if ( $via and $result->can('route') ) {
- my @route = $result->route;
- if ( $result->isa('Travel::Status::DE::IRIS::Result') ) {
- @route = $result->route_post;
- }
+ if ( $via and $result->can('route_post') ) {
+ my @route = $result->route_post;
if ( not( List::MoreUtils::any { m{$via}i } @route ) ) {
next;
}
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index 1a1f847..5e35153 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -135,25 +135,6 @@
% }
</div> <!-- mroute -->
% }
-% elsif ($departure->{route_timetable}) {
- <div class="mroute">
- Über:
-% my $first = 0;
-% for my $stop (@{$departure->{route_timetable}}) {
-% my ($time, $name) = @{$stop};
-% if ($first++) {
- <span class="separator">–</span>
-% }
- <span class="generic-stop"><%= $time %></span>
-% if ($self->is_important($name)) {
- <span class="important-stop"><%= $name %></span>
-% }
-% else {
- <span class="generic-stop"><%= $name %></span>
-% }
-% }
- </div> <!-- mroute -->
-% }
% if ($departure->{moreinfo} and @{$departure->{moreinfo}}) {
Meldungen:
<ul>