summaryrefslogtreecommitdiff
path: root/templates/history_by_year.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/history_by_year.html.ep')
-rw-r--r--templates/history_by_year.html.ep13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/history_by_year.html.ep b/templates/history_by_year.html.ep
new file mode 100644
index 0000000..97c223f
--- /dev/null
+++ b/templates/history_by_year.html.ep
@@ -0,0 +1,13 @@
+% my $since = get_user_data()->{registered_at};
+% my $now = DateTime->now(time_zone => 'Europe/Berlin');
+%= include '_history_years', current => $year, since => $since, now => $now;
+
+<h1>Jahresrückblick <%= $year %></h1>
+
+% if (stash('statistics')) {
+ %= include '_history_stats', stats => stash('statistics');
+% }
+
+% if (stash('journeys')) {
+ %= include '_history_trains', journeys => stash('journeys');
+% }