From 6659d761011b7303df50e9c05f749adaf2293047 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 28 Jul 2024 15:38:31 +0200 Subject: [PATCH] history: add map link for monthly history --- lib/Travelynx/Controller/Traveling.pm | 16 +++++++++------- templates/history_by_month.html.ep | 6 ++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index ca31e12..7fbde79 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -1644,13 +1644,15 @@ sub monthly_history { } }, any => { - template => 'history_by_month', - title => "travelynx: $month_name $year", - journeys => [@journeys], - year => $year, - month => $month, - month_name => $month_name, - statistics => $stats + template => 'history_by_month', + title => "travelynx: $month_name $year", + journeys => [@journeys], + year => $year, + month => $month, + month_name => $month_name, + filter_from => $interval_start, + filter_to => $interval_end->clone->subtract( days => 1 ), + statistics => $stats } ); diff --git a/templates/history_by_month.html.ep b/templates/history_by_month.html.ep index 9ad7031..c3b1004 100644 --- a/templates/history_by_month.html.ep +++ b/templates/history_by_month.html.ep @@ -4,6 +4,12 @@ %= include '_history_stats', stats => stash('statistics'); % } +
+
+ Karte +
+
+ % if (stash('journeys')) { %= include '_history_trains', date_format => '%d.%m.', journeys => stash('journeys'); % }