From ffee7177ac26f4e79227cdf0abcd83f80f34faa4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 7 Apr 2019 18:44:33 +0200 Subject: Refactor history template, add yearly stats --- templates/_history_months.html.ep | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 templates/_history_months.html.ep (limited to 'templates/_history_months.html.ep') diff --git a/templates/_history_months.html.ep b/templates/_history_months.html.ep new file mode 100644 index 0000000..465a159 --- /dev/null +++ b/templates/_history_months.html.ep @@ -0,0 +1,12 @@ +
+
+
    + % while ($since < $now) { + % my $link_to = $since->strftime('%Y/%m'); + % my $class = $link_to eq $current ? 'active' : 'waves-effect'; +
  • <%= $since->strftime('%m.%Y') %>
  • + % $since->add(months => 1)->set(day => 1, hour => 0, minute => 0, second => 0); + % } +
+
+
-- cgit v1.2.3