summaryrefslogtreecommitdiff
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
parent048767149e571469d888ec81d324caa7b3b64671 (diff)
show imprint and version on landing page
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm8
-rw-r--r--templates/about.html.ep2
-rw-r--r--templates/landingpage.html.ep8
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>