summaryrefslogtreecommitdiff
path: root/templates/_history_months.html.ep
blob: 465a1592131001626e6cb27d60e04c05b9f8cbfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<div class="row">
	<div class="col s12">
		<ul class="pagination">
			% while ($since < $now) {
				% my $link_to = $since->strftime('%Y/%m');
				% my $class = $link_to eq $current ? 'active' : 'waves-effect';
				<li class="<%= $class %>"><a href="/history/<%= $link_to %>"><%= $since->strftime('%m.%Y') %></a></li>
				% $since->add(months => 1)->set(day => 1, hour => 0, minute => 0, second => 0);
			% }
		</ul>
	</div>
</div>