summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-10-07 09:12:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-10-07 09:12:45 +0200
commitd95cb9d06a346e16e8cc2a63b9b0e1279a19a251 (patch)
tree1e85ba0788350623f0d58f1d48dcb0170d945a06 /templates
parentbf6f6405f19795b9718cefc3eac3ecaafa7cf12e (diff)
only show travel distance if duration is not available
Diffstat (limited to 'templates')
-rw-r--r--templates/landingpage.html.ep2
1 files changed, 0 insertions, 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 @@
<td><%= $travel->{from_name} %> → <%= $travel->{to_name} %></td>
% if ($travel->{rt_arrival} and $travel->{rt_departure}) {
<td><%= ($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
</td>
% } else {
<td><%= sprintf('%.f', $self->get_travel_distance($travel->{from_name}, $travel->{to_name}, $travel->{route})) %>km</td>