journey: show beeline if route is unavailable
This commit is contained in:
parent
655f69c2e9
commit
772b4e3b23
1 changed files with 6 additions and 0 deletions
|
@ -133,6 +133,9 @@
|
||||||
ca. <%= sprintf_km($journey->{km_route}) %>
|
ca. <%= sprintf_km($journey->{km_route}) %>
|
||||||
(Luftlinie: <%= sprintf_km($journey->{km_beeline}) %>)
|
(Luftlinie: <%= sprintf_km($journey->{km_beeline}) %>)
|
||||||
% }
|
% }
|
||||||
|
% elsif ($journey->{km_beeline} > 0.1) {
|
||||||
|
(Luftlinie: <%= sprintf_km($journey->{km_beeline}) %>)
|
||||||
|
% }
|
||||||
% else {
|
% 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 {
|
% else {
|
||||||
?
|
?
|
||||||
% }
|
% }
|
||||||
|
|
Loading…
Reference in a new issue