summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-08-16 21:20:23 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-08-16 21:20:23 +0200
commit47b957361e84c826bfee0fa4e45db9de9e5c0182 (patch)
tree1ae4234091fbb321df7dafea395d962963ca2d96 /templates
parentd9624ee30882a66e5304a2cca0591a77fc9445f1 (diff)
Move most journey code to newly introduced Journey model
Diffstat (limited to 'templates')
-rw-r--r--templates/add_journey.html.ep2
-rw-r--r--templates/landingpage.html.ep2
2 files changed, 2 insertions, 2 deletions
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 @@
<h1>Zugfahrt eingeben</h1>
-% if (not get_oldest_journey_ts()) {
+% if (not journeys->get_oldest_ts()) {
<div class="row">
<div class="col s12">
<div class="card info-color">
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 @@
</div>
</div>
<h1>Letzte Fahrten</h1>
- %= 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 {
<div class="row">