Commit 160651f0 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

add train search (beta, not linked yet)

parent 5b4bead3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -369,7 +369,11 @@ sub startup {

	$r->get('/_redirect')->to('static#redirect');

	$r->get('/_auto')->to('static#geolocation');
	# legacy entry point
	$r->get('/_auto')->to('static#geostop');

	$r->get('/_autostop')->to('static#geostop');
	$r->get('/_autotrain')->to('static#geotrain');

	$r->get('/_datenschutz')->to('static#privacy');

+14 −4
Original line number Diff line number Diff line
@@ -39,12 +39,22 @@ sub redirect {
	}
}

sub geolocation {
sub geostop {
	my ($self) = @_;

	$self->render(
		'geolocation',
		with_geolocation => 1,
		'geostop',
		with_geostop => 1,
		hide_opts    => 1
	);
}

sub geotrain {
	my ($self) = @_;

	$self->render(
		'geotrain',
		with_geotrain => 1,
		hide_opts     => 1
	);
}
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+4 −4
Original line number Diff line number Diff line
@@ -2,12 +2,12 @@
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(/static/v47/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
  src: url(/static/v48/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
  src: local('Material Icons'),
       local('MaterialIcons-Regular'),
       url(/static/v47/fonts/MaterialIcons-Regular.woff2) format('woff2'),
       url(/static/v47/fonts/MaterialIcons-Regular.woff) format('woff'),
       url(/static/v47/fonts/MaterialIcons-Regular.ttf) format('truetype');
       url(/static/v48/fonts/MaterialIcons-Regular.woff2) format('woff2'),
       url(/static/v48/fonts/MaterialIcons-Regular.woff) format('woff'),
       url(/static/v48/fonts/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
Loading