mirror of
https://github.com/derf/travelynx
synced 2024-12-02 17:29:11 +00:00
18 lines
486 B
Text
18 lines
486 B
Text
<div class="row">
|
|
<div class="col s12">
|
|
% my @years = journeys->get_nav_years(uid => current_user->{id});
|
|
% if (@years) {
|
|
<ul class="pagination">
|
|
% for my $year (@years) {
|
|
% 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.
|
|
% }
|
|
</div>
|
|
</div>
|