summaryrefslogtreecommitdiff
path: root/templates/_history_years.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_history_years.html.ep')
-rw-r--r--templates/_history_years.html.ep12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/_history_years.html.ep b/templates/_history_years.html.ep
new file mode 100644
index 0000000..02bb70d
--- /dev/null
+++ b/templates/_history_years.html.ep
@@ -0,0 +1,12 @@
+<div class="row">
+ <div class="col s12">
+ <ul class="pagination">
+ % while ($since < $now) {
+ % my $link_to = $since->strftime('%Y');
+ % my $class = $link_to eq $current ? 'active' : 'waves-effect';
+ <li class="<%= $class %>"><a href="/history/<%= $link_to %>"><%= $since->strftime('%Y') %></a></li>
+ % $since->add(years => 1)->set(month => 1, day => 1, hour => 0, minute => 0, second => 0);
+ % }
+ </ul>
+ </div>
+</div>