diff options
Diffstat (limited to 'templates/_history_months_for_year.html.ep')
-rw-r--r-- | templates/_history_months_for_year.html.ep | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ +<div class="row"> + <div class="col s12"> + <div class="collection"> + % for my $month (journeys->get_months_for_year(uid => current_user->{id}, year => $year)) { + % if (defined $month->[2]) { + <a class="collection-item" href="/history/<%= $month->[0] %>"><%= $month->[1] %> + <span class="secondary-content"><%= sprintf('%.f', $month->[2]{km_route}) %> km</span> + </a> + % } + % else { + <div class="collection-item disabled"><%= $month->[1] %></div> + % } + % } + </div> + </div> +</div> |