summaryrefslogtreecommitdiff
path: root/templates/_history_months.html.ep
blob: a707943e15a5c4971f47dc35308ed2853eb159a7 (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 $month (journeys->get_months(uid => current_user->{id})) {
				% my $link_to = $month->[0];
				% my $text = $month->[1];
				% my $class = $link_to eq $current ? 'active' : 'waves-effect';
				<li class="<%= $class %>"><a href="/history/<%= $link_to %>"><%= $text %></a></li>
			% }
		</ul>
	</div>
</div>