mirror of
https://github.com/derf/travelynx
synced 2024-11-10 06:54:17 +00:00
18 lines
569 B
Text
18 lines
569 B
Text
<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] %>
|
|
% if (defined $month->[2]{km_route}) {
|
|
<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>
|