From 47b957361e84c826bfee0fa4e45db9de9e5c0182 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 16 Aug 2020 21:20:23 +0200 Subject: Move most journey code to newly introduced Journey model --- templates/add_journey.html.ep | 2 +- templates/landingpage.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/add_journey.html.ep b/templates/add_journey.html.ep index 0682fa9..777fdee 100644 --- a/templates/add_journey.html.ep +++ b/templates/add_journey.html.ep @@ -1,5 +1,5 @@

Zugfahrt eingeben

-% if (not get_oldest_journey_ts()) { +% if (not journeys->get_oldest_ts()) {
diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index ce817e7..0534c71 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -70,7 +70,7 @@

Letzte Fahrten

- %= include '_history_trains', date_format => '%d.%m', journeys => [get_user_travels(limit => 5, with_datetime => 1)]; + %= include '_history_trains', date_format => '%d.%m', journeys => [journeys->get(uid => current_user()->{id}, limit => 5, with_datetime => 1)]; % } % else {
-- cgit v1.2.3