diff --git a/templates/journey.html.ep b/templates/journey.html.ep index fc2b56d73d5841e50d5aba59818512e8a4431d38..492335c4235098be48067e27d3a8b7a33768f812 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 { ? % }