mirror of
https://github.com/derf/travelynx
synced 2024-11-10 06:54:17 +00:00
show imprint and version on landing page
This commit is contained in:
parent
048767149e
commit
2d7c75f877
3 changed files with 16 additions and 2 deletions
|
@ -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}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue