From 2391980de5b599b6a8801b793c1f958df515ce32 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 2 Jan 2024 09:27:17 +0100 Subject: map header: Also include filter --- templates/history_map.html.ep | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/templates/history_map.html.ep b/templates/history_map.html.ep index 833bf80..57ba81f 100644 --- a/templates/history_map.html.ep +++ b/templates/history_map.html.ep @@ -1,22 +1,31 @@
+ % if (@{$station_coordinates}) { + Fahrten + % } + % else { + Keine Fahrten + % } + % if (param('filter_type')) { + mit <%= param('filter_type') %> + % } % if (stash('year')) { - Fahrten im Jahr <%= stash('year') %> + im Jahr <%= stash('year') %> % } % elsif (param('filter_from') and param('filter_to')) { - Fahrten zwischen dem <%= param('filter_from') %> und dem <%= param('filter_to') %> + zwischen dem <%= param('filter_from') %> und dem <%= param('filter_to') %> % } % elsif (param('filter_from')) { - Fahrten ab dem <%= param('filter_from') %> + ab dem <%= param('filter_from') %> % } % elsif (param('filter_to')) { - Fahrten bis einschließlich <%= param('filter_to') %> + bis einschließlich <%= param('filter_to') %> % } % elsif (@{$station_coordinates}) { - Alle bisherigen Fahrten + in travelynx % } - % else { - Keine Fahrten gefunden. + % if (not @{$station_coordinates}) { + gefunden % }
@@ -92,7 +101,7 @@
%= text_field 'filter_type', id => 'filter_type' - +
-- cgit v1.2.3