diff options
Diffstat (limited to 'templates/history_by_month.html.ep')
-rw-r--r-- | templates/history_by_month.html.ep | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/history_by_month.html.ep b/templates/history_by_month.html.ep new file mode 100644 index 0000000..3794858 --- /dev/null +++ b/templates/history_by_month.html.ep @@ -0,0 +1,13 @@ +% my $since = get_user_data()->{registered_at}; +% my $now = DateTime->now(time_zone => 'Europe/Berlin'); +%= include '_history_months', current => "${year}/${month}", since => $since, now => $now; + +<h1><%= stash('month_name') %> <%= stash('year') %></h1> + +% if (stash('statistics')) { + %= include '_history_stats', stats => stash('statistics'); +% } + +% if (stash('journeys')) { + %= include '_history_trains', journeys => stash('journeys'); +% } |