From b3b0a055b9b4c3ab332f75070ce1fa80a3638105 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 24 Nov 2019 20:29:52 +0100 Subject: improve get_user_travels performance, most notably when rendering map only create DateTime objects when needed --- templates/history_map.html.ep | 2 +- templates/landingpage.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/history_map.html.ep b/templates/history_map.html.ep index 90b5647..97b2276 100644 --- a/templates/history_map.html.ep +++ b/templates/history_map.html.ep @@ -1,7 +1,7 @@
% if (@{$station_coordinates}) { - Zugfahrten zwischen <%= $range_from->strftime('%d.%m.%Y') %> und <%= $range_to->strftime('%d.%m.%Y') %> + Alle bisherigen Zugfahrten % } % else { Keine Zugfahrten gefunden. diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index ad80350..fd71f9c 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)]; + %= include '_history_trains', date_format => '%d.%m', journeys => [get_user_travels(limit => 5, with_datetime => 1)]; % } % else {
-- cgit v1.2.3