diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-07 18:44:33 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-07 18:44:33 +0200 |
commit | ffee7177ac26f4e79227cdf0abcd83f80f34faa4 (patch) | |
tree | 9232d785b19f5e10239be0c20ca55bcc60062700 /templates/history_by_year.html.ep | |
parent | 828dd54266dfaf2b58c0498b7ced6c06d6e104ef (diff) |
Refactor history template, add yearly stats
Diffstat (limited to 'templates/history_by_year.html.ep')
-rw-r--r-- | templates/history_by_year.html.ep | 13 |
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'); +% } |