From ccfdd8007e136d5d98652d415dda8eb595a2ada9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Nov 2020 15:33:43 +0100 Subject: testing a more organized history navigation --- templates/_history_months_for_year.html.ep | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 templates/_history_months_for_year.html.ep (limited to 'templates/_history_months_for_year.html.ep') diff --git a/templates/_history_months_for_year.html.ep b/templates/_history_months_for_year.html.ep new file mode 100644 index 0000000..c6a64de --- /dev/null +++ b/templates/_history_months_for_year.html.ep @@ -0,0 +1,16 @@ +
+
+
+ % 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 + + % } + % else { +
<%= $month->[1] %>
+ % } + % } +
+
+
-- cgit v1.2.3