Unverified Commit 6d3fcb59 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

history_by_year: hide stats and monthly view if filter is set

parent 77e2cf68
Loading
Loading
Loading
Loading
+26 −23
Original line number Diff line number Diff line
%= include '_history_years', current => $year;

% if (param('filter') and param('filter') eq 'single') {
<div class="row">
	<div class="col s12 m12 l12">
		<p>Die folgende Auflistung enthält nur Fahrten, deren Kombination aus Start und Ziel im aktuellen Jahr einmalig ist.</p>
	</div>
</div>
% }
% else {

	% if (stash('statistics')) {
		%= include '_history_stats', stats => stash('statistics');
	% }
@@ -23,12 +32,6 @@

	%= include '_history_months_for_year';

% if (param('filter') and param('filter') eq 'single') {
<div class="row">
	<div class="col s12 m12 l12">
		<p>Die folgende Auflistung enthält nur Fahrten, deren Kombination aus Start und Ziel im aktuellen Jahr einmalig ist.</p>
	</div>
</div>
% }

% if (stash('journeys')) {