journey: show beeline if route is unavailable

This commit is contained in:
Birte Kristina Friesel 2024-08-14 22:03:48 +02:00
parent 655f69c2e9
commit 772b4e3b23
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -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 {
?
% }