From 47658b7496ee0081d80a14dde4b15ff275452848 Mon Sep 17 00:00:00 2001
From: Birte Kristina Friesel <derf@finalrewind.org>
Date: Tue, 2 Jan 2024 09:14:55 +0100
Subject: map header: support exclusive use of filter_from / filter_to

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

(limited to 'templates')

diff --git a/templates/history_map.html.ep b/templates/history_map.html.ep
index 9218f76..833bf80 100644
--- a/templates/history_map.html.ep
+++ b/templates/history_map.html.ep
@@ -6,6 +6,12 @@
 		% elsif (param('filter_from') and param('filter_to')) {
 			Fahrten zwischen dem <strong><%= param('filter_from') %></strong> und dem <strong><%= param('filter_to') %></strong>
 		% }
+		% elsif (param('filter_from')) {
+			Fahrten ab dem <strong><%= param('filter_from') %></strong>
+		% }
+		% elsif (param('filter_to')) {
+			Fahrten bis einschließlich <strong><%= param('filter_to') %></strong>
+		% }
 		% elsif (@{$station_coordinates}) {
 			Alle bisherigen Fahrten
 		% }
-- 
cgit v1.2.3