From 0addce7bff7dd87c663e09217659dc0555d93453 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Nov 2020 15:39:21 +0100 Subject: month overview: distinguish between no stats and no journeys --- templates/_history_months_for_year.html.ep | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/_history_months_for_year.html.ep b/templates/_history_months_for_year.html.ep index c6a64de..1d035ab 100644 --- a/templates/_history_months_for_year.html.ep +++ b/templates/_history_months_for_year.html.ep @@ -4,7 +4,9 @@ % for my $month (journeys->get_months_for_year(uid => current_user->{id}, year => $year)) { % if (defined $month->[2]) { <%= $month->[1] %> - <%= sprintf('%.f', $month->[2]{km_route}) %> km + % if (defined $month->[2]{km_route}) { + <%= sprintf('%.f', $month->[2]{km_route}) %> km + % } % } % else { -- cgit v1.2.3