From 2d7c75f8779fef14eefa84a7c03fb16e52f9bf4f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 30 Apr 2019 18:18:09 +0200 Subject: show imprint and version on landing page --- lib/Travelynx/Controller/Traveling.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/Travelynx/Controller') diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 0a7250f..81b3a70 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -10,13 +10,18 @@ sub homepage { if ( $self->is_user_authenticated ) { $self->render( 'landingpage', + version => $self->app->config->{version} // 'UNKNOWN', with_autocomplete => 1, with_geolocation => 1 ); $self->mark_seen( $self->current_user->{id} ); } else { - $self->render( 'landingpage', intro => 1 ); + $self->render( + 'landingpage', + version => $self->app->config->{version} // 'UNKNOWN', + intro => 1 + ); } } @@ -246,6 +251,7 @@ sub station { if ( $status->{errstr} ) { $self->render( 'landingpage', + version => $self->app->config->{version} // 'UNKNOWN', with_autocomplete => 1, with_geolocation => 1, error => $status->{errstr} -- cgit v1.2.3