diff options
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 8 | ||||
-rw-r--r-- | templates/about.html.ep | 2 | ||||
-rw-r--r-- | templates/landingpage.html.ep | 8 |
3 files changed, 16 insertions, 2 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} diff --git a/templates/about.html.ep b/templates/about.html.ep index de7b671..c16992d 100644 --- a/templates/about.html.ep +++ b/templates/about.html.ep @@ -1,6 +1,6 @@ <div class="row"> <div class="col s12"> - <a href="https://git.finalrewind.org/travelynx">travelynx</a> v<%= stash('version') // '???' %><br/> + <a href="https://finalrewind.org/projects/travelynx">travelynx</a> v<%= stash('version') // '???' %><br/> Entwickelt von <a href="https://twitter.com/derfnull">@derfnull</a><br/> Backend: <a href="https://finalrewind.org/projects/Travel-Status-DE-IRIS/">Travel::Status::DE::IRIS</a> diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index c6551ec..4e1af8e 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -120,3 +120,11 @@ </div> </div> % } + +<div class="row" style="margin-top: 5em;"> + <div class="col s12 center-align grey-text"> + <a href="impressum">Impressum und Datenschutz</a> + <span style="margin-left: 0.5em; margin-right: 0.5em;">–</span> + <a href="https://finalrewind.org/projects/travelynx">travelynx</a> v<%= stash('version') // '???' %> + </div> +</div> |