diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/add_journey.html.ep | 2 | ||||
-rw-r--r-- | templates/landingpage.html.ep | 2 |
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"> |