summaryrefslogtreecommitdiff
path: root/lib/Travelynx
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-30 18:18:09 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-30 18:18:09 +0200
commit2d7c75f8779fef14eefa84a7c03fb16e52f9bf4f (patch)
tree8b68e5c9209a9c0e8837382c7b44259e7bdc65f5 /lib/Travelynx
parent048767149e571469d888ec81d324caa7b3b64671 (diff)
show imprint and version on landing page
Diffstat (limited to 'lib/Travelynx')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm8
1 files changed, 7 insertions, 1 deletions
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}