From 04c8d7672ac977257379c62be1833d3b3b8e8e7b Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 16 Sep 2023 22:23:44 +0200 Subject: journey: show distances below 10km with 100m resolution (and <1km with 1m) --- templates/journey.html.ep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/journey.html.ep b/templates/journey.html.ep index d138126..f5eebfc 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -130,8 +130,8 @@ <%= numify_skipped_stations($journey->{skip_route}) %>
% } % if ($journey->{km_route} > 0.1) { - ca. <%= sprintf('%.f', $journey->{km_route}) %> km - (Luftlinie: <%= sprintf('%.f', $journey->{km_beeline}) %> km) + ca. <%= sprintf_km($journey->{km_route}) %> + (Luftlinie: <%= sprintf_km($journey->{km_beeline}) %>) % } % else { ? -- cgit v1.2.3