summaryrefslogtreecommitdiff
path: root/templates/journey.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-14 22:03:48 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-14 22:03:48 +0200
commit772b4e3b23b10d3d628c29fac7a4eab6d05d686a (patch)
tree262eb049b20e932f51c32a4080903c961be8dc97 /templates/journey.html.ep
parent655f69c2e956eaca9bb0ffc3cfbf947944d6b3fb (diff)
journey: show beeline if route is unavailable2.8.19
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r--templates/journey.html.ep6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index fc2b56d..492335c 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -133,6 +133,9 @@
ca. <%= sprintf_km($journey->{km_route}) %>
(Luftlinie: <%= sprintf_km($journey->{km_beeline}) %>)
% }
+ % elsif ($journey->{km_beeline} > 0.1) {
+ (Luftlinie: <%= sprintf_km($journey->{km_beeline}) %>)
+ % }
% else {
?
% }
@@ -155,6 +158,9 @@
% }
% }
+ % elsif ($journey->{km_beeline} > 0.1 and $journey->{kmh_beeline} > 0.01) {
+ (<%= sprintf('%.f', $journey->{kmh_beeline}) %> km/h)
+ % }
% else {
?
% }