From d95cb9d06a346e16e8cc2a63b9b0e1279a19a251 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 7 Oct 2018 09:12:45 +0200 Subject: [PATCH] only show travel distance if duration is not available --- templates/landingpage.html.ep | 2 -- 1 file changed, 2 deletions(-) diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index 9e45076..e25cd22 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -50,8 +50,6 @@ <%= $travel->{from_name} %> → <%= $travel->{to_name} %> % if ($travel->{rt_arrival} and $travel->{rt_departure}) { <%= ($travel->{rt_arrival}->epoch - $travel->{rt_departure}->epoch) / 60 %> min - / - <%= sprintf('%.f', $self->get_travel_distance($travel->{from_name}, $travel->{to_name}, $travel->{route})) %>km % } else { <%= sprintf('%.f', $self->get_travel_distance($travel->{from_name}, $travel->{to_name}, $travel->{route})) %>km