diff options
| -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"> | 
