summaryrefslogtreecommitdiff
path: root/templates/history.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-27 09:11:42 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-27 09:11:42 +0200
commitd6e6c9992e85151ee12b9104bca647ce0e11782b (patch)
tree4bddfc005f4694aff7724f3479cac2e0bd4f5032 /templates/history.html.ep
parent8c1888263ba1b79c86c677b8f7f665b7342b04c2 (diff)
History: Only show months and years with logged journeys
Diffstat (limited to 'templates/history.html.ep')
-rw-r--r--templates/history.html.ep14
1 files changed, 4 insertions, 10 deletions
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 @@
</div>
<h2>Nach Jahr</h2>
-% 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) {
<div class="row">
<div class="col s12">
Noch keine Fahrten.
@@ -36,10 +32,8 @@
% }
<h2>Nach Monat</h2>
-% if ($since) {
- %= include '_history_months', current => '', since => $since->clone, now => $now;
-% }
-% else {
+%= include '_history_months', current => '';
+% if(0) {
<div class="row">
<div class="col s12">
Noch keine Fahrten.