diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-12-03 22:16:54 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-12-03 22:16:54 +0100 |
commit | c509703ce55e4347af3a07e52b989618f06b710b (patch) | |
tree | e40a33bed5d7e8bdf15cd8facac7a582f9c8a487 /templates | |
parent | 2613fc0e5896a03bb71f3cb8151f85b415fcab1f (diff) |
oopsie1.18.13
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_history_years_list.html.ep | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/_history_years_list.html.ep b/templates/_history_years_list.html.ep new file mode 100644 index 0000000..e91ebca --- /dev/null +++ b/templates/_history_years_list.html.ep @@ -0,0 +1,13 @@ +<div class="row"> + <div class="col s12"> + <div class="collection"> + % for my $year (journeys->get_years(uid => current_user->{id})) { + <a class="collection-item" href="/history/<%= $year->[0] %>"><%= $year->[1] %> + % if (defined $year->[2]{km_route}) { + <span class="secondary-content"><%= sprintf('%.f', $year->[2]{km_route}) %> km</span> + % } + </a> + % } + </div> + </div> +</div> |