Unverified Commit 6659d761 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

history: add map link for monthly history

parent 581963a8
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -1650,6 +1650,8 @@ sub monthly_history {
			year        => $year,
			month       => $month,
			month_name  => $month_name,
			filter_from => $interval_start,
			filter_to   => $interval_end->clone->subtract( days => 1 ),
			statistics  => $stats
		}
	);
+6 −0
Original line number Diff line number Diff line
@@ -4,6 +4,12 @@
	%= include '_history_stats', stats => stash('statistics');
% }

<div class="row">
	<div class="col s12 m12 l12 center-align">
		<a href="/history/map?filter_from=<%= $filter_from->strftime('%d.%m.%Y') %>&amp;filter_to=<%= $filter_to->strftime('%d.%m.%Y') %>" class="waves-effect waves-light btn"><i class="material-icons left" aria-hidden="true">map</i> Karte</a>
	</div>
</div>

% if (stash('journeys')) {
	%= include '_history_trains', date_format => '%d.%m.', journeys => stash('journeys');
% }