From 1690a07d92696f0878a3d305e74c09530b3c49d6 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 2 Jan 2024 09:12:24 +0100 Subject: Rename filter_after/filter_before to filter_from/filter_to (they're inclusive) --- lib/Travelynx/Controller/Traveling.pm | 4 ++-- templates/history_by_year.html.ep | 4 ++-- templates/history_map.html.ep | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index ac14c76..d92137b 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -1309,8 +1309,8 @@ sub map_history { } my $route_type = $self->param('route_type'); - my $filter_from = $self->param('filter_after'); - my $filter_until = $self->param('filter_before'); + my $filter_from = $self->param('filter_from'); + my $filter_until = $self->param('filter_to'); my $filter_type = $self->param('filter_type'); my $with_polyline = $route_type eq 'beeline' ? 0 : 1; diff --git a/templates/history_by_year.html.ep b/templates/history_by_year.html.ep index adc4840..6aa0c2d 100644 --- a/templates/history_by_year.html.ep +++ b/templates/history_by_year.html.ep @@ -7,7 +7,7 @@
% if (stash('have_review')) {
 
@@ -16,7 +16,7 @@ % } % else { % }
diff --git a/templates/history_map.html.ep b/templates/history_map.html.ep index b6ebd9c..9218f76 100644 --- a/templates/history_map.html.ep +++ b/templates/history_map.html.ep @@ -3,8 +3,8 @@ % if (stash('year')) { Fahrten im Jahr <%= stash('year') %> % } - % elsif (param('filter_after') and param('filter_before')) { - Fahrten zwischen dem <%= param('filter_after') %> und dem <%= param('filter_before') %> + % elsif (param('filter_from') and param('filter_to')) { + Fahrten zwischen dem <%= param('filter_from') %> und dem <%= param('filter_to') %> % } % elsif (@{$station_coordinates}) { Alle bisherigen Fahrten @@ -73,14 +73,14 @@

- %= text_field 'filter_after', id => 'filter_after', class => 'validate', pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9]( +[0-9][0-9]:[0-9][0-9])?' - + %= text_field 'filter_from', id => 'filter_from', class => 'validate', pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9]( +[0-9][0-9]:[0-9][0-9])?' +
- %= text_field 'filter_before', id => 'filter_before', class => 'validate', pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9]( +[0-9][0-9]:[0-9][0-9])?' - + %= text_field 'filter_to', id => 'filter_to', class => 'validate', pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9]( +[0-9][0-9]:[0-9][0-9])?' +
-- cgit v1.2.3