summaryrefslogtreecommitdiff
path: root/templates/_history_years.html.ep
blob: e0b13570f58576207e70599948e007ee63def800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<div class="row">
	<div class="col s12">
		<ul class="pagination">
			% for my $year (journeys->get_years(uid => current_user->{id})) {
				% 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>
	</div>
</div>