From d6e6c9992e85151ee12b9104bca647ce0e11782b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 27 Apr 2019 09:11:42 +0200 Subject: History: Only show months and years with logged journeys --- templates/history.html.ep | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'templates/history.html.ep') diff --git a/templates/history.html.ep b/templates/history.html.ep index 246d6af..a2f607a 100644 --- a/templates/history.html.ep +++ b/templates/history.html.ep @@ -22,12 +22,8 @@

Nach Jahr

-% my $since = get_oldest_journey_ts(); -% my $now = DateTime->now(time_zone => 'Europe/Berlin'); -% if ($since) { - %= include '_history_years', current => '', since => $since->clone, now => $now; -% } -% else { +%= include '_history_years', current => ''; +% if(0) {
Noch keine Fahrten. @@ -36,10 +32,8 @@ % }

Nach Monat

-% if ($since) { - %= include '_history_months', current => '', since => $since->clone, now => $now; -% } -% else { +%= include '_history_months', current => ''; +% if(0) {
Noch keine Fahrten. -- cgit v1.2.3