2019-04-07 16:44:33 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
2020-12-03 21:15:09 +00:00
|
|
|
% my @years = journeys->get_nav_years(uid => current_user->{id});
|
2020-11-21 14:33:43 +00:00
|
|
|
% if (@years) {
|
|
|
|
<ul class="pagination">
|
2020-12-03 21:01:39 +00:00
|
|
|
% for my $year (@years) {
|
2020-11-21 14:33:43 +00:00
|
|
|
% my $link_to = $year->[0];
|
|
|
|
% my $text = $year->[1];
|
|
|
|
% my $class = $link_to eq $current ? 'active' : 'waves-effect';
|
|
|
|
<li class="<%= $class %>"><a href="/history/<%= $link_to %>"><%= $text %></a></li>
|
|
|
|
% }
|
|
|
|
</ul>
|
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
Keine Fahrten gefunden.
|
|
|
|
% }
|
2019-04-07 16:44:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|