From 0229768fe6730a559a42a32d2e9a37fef202bc11 Mon Sep 17 00:00:00 2001
From: Birte Kristina Friesel <derf@finalrewind.org>
Date: Mon, 1 Jan 2024 13:00:13 +0100
Subject: [PATCH] history_map: also show header for custom date ranges

---
 templates/history_map.html.ep | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/templates/history_map.html.ep b/templates/history_map.html.ep
index 8b6323de..b6ebd9c7 100644
--- a/templates/history_map.html.ep
+++ b/templates/history_map.html.ep
@@ -1,7 +1,10 @@
 <div class="row">
 	<div class="col s12">
 		% if (stash('year')) {
-			Alle Fahrten in <strong><%= stash('year') %></strong>
+			Fahrten im Jahr <strong><%= stash('year') %></strong>
+		% }
+		% elsif (param('filter_after') and param('filter_before')) {
+			Fahrten zwischen dem <strong><%= param('filter_after') %></strong> und dem <strong><%= param('filter_before') %></strong>
 		% }
 		% elsif (@{$station_coordinates}) {
 			Alle bisherigen Fahrten
-- 
GitLab