diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-05-19 19:45:40 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-05-19 19:45:40 +0200 |
commit | a560eb49240a6f1f180a1a9111887b7fb2e5e3b7 (patch) | |
tree | d170a8e8310fe4ea43981d5b0f8411035a13c845 | |
parent | ec49f4bad7fc12e1f23459ded6b72405117a4ab1 (diff) |
Add links to imprint and privacy policy
-rw-r--r-- | index.pl | 12 | ||||
-rw-r--r-- | templates/main.html.ep | 2 |
2 files changed, 14 insertions, 0 deletions
@@ -639,6 +639,18 @@ get '/_redirect' => sub { return; }; +get '/_privacy' => sub { + my $self = shift; + + $self->render('privacy'); +}; + +get '/_imprint' => sub { + my $self = shift; + + $self->render('imprint'); +}; + get '/' => \&handle_request; get '/:city/(*stop).html' => \&render_html; get '/:city/(*stop).json' => \&render_json; diff --git a/templates/main.html.ep b/templates/main.html.ep index 1dcf216..fd2db1e 100644 --- a/templates/main.html.ep +++ b/templates/main.html.ep @@ -211,6 +211,8 @@ v<%= $Travel::Status::DE::ASEAG::VERSION %><br/> v<%= $Travel::Status::DE::HAFAS::VERSION %><br/> <a href="http://finalrewind.org/projects/Travel-Status-DE-VRR/">Travel::Status::DE::EFA</a> v<%= $Travel::Status::DE::EFA::VERSION %><br/> +<a href="/_imprint">Imprint</a><br/> +<a href="/_privacy">Privacy</a><br/> </div> </div> <!-- container --> |