diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-02 09:27:17 +0100 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-02 09:27:17 +0100 | 
| commit | 2391980de5b599b6a8801b793c1f958df515ce32 (patch) | |
| tree | c79e6514d9584ed0ec028066b093c744893fb70a | |
| parent | 47658b7496ee0081d80a14dde4b15ff275452848 (diff) | |
map header: Also include filter2.5.9
| -rw-r--r-- | templates/history_map.html.ep | 25 | 
1 files 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 @@  <div class="row">  	<div class="col s12"> +		% if (@{$station_coordinates}) { +			Fahrten +		% } +		% else { +			Keine Fahrten +		% } +		% if (param('filter_type')) { +			mit <strong><%= param('filter_type') %></strong> +		% }  		% if (stash('year')) { -			Fahrten im Jahr <strong><%= stash('year') %></strong> +			im Jahr <strong><%= stash('year') %></strong>  		% }  		% elsif (param('filter_from') and param('filter_to')) { -			Fahrten zwischen dem <strong><%= param('filter_from') %></strong> und dem <strong><%= param('filter_to') %></strong> +			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> +			ab dem <strong><%= param('filter_from') %></strong>  		% }  		% elsif (param('filter_to')) { -			Fahrten bis einschließlich <strong><%= param('filter_to') %></strong> +			bis einschließlich <strong><%= param('filter_to') %></strong>  		% }  		% elsif (@{$station_coordinates}) { -			Alle bisherigen Fahrten +			in travelynx  		% } -		% else { -			Keine Fahrten gefunden. +		% if (not @{$station_coordinates}) { +			gefunden  		% }  	</div>  </div> @@ -92,7 +101,7 @@  	<div class="row">  		<div class="input-field col s12">  			%= text_field 'filter_type', id => 'filter_type' -			<label for="filter_tpye">Zugtypen</label> +			<label for="filter_tpye">Verkehrsmittel</label>  		</div>  	</div>  	<div class="row"> | 
