Unverified Commit 2391980d authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

map header: Also include filter

parent 47658b74
Loading
Loading
Loading
Loading
+17 −8
Original line number Diff line number Diff line
<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">