From a560eb49240a6f1f180a1a9111887b7fb2e5e3b7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 19 May 2018 19:45:40 +0200 Subject: Add links to imprint and privacy policy --- index.pl | 12 ++++++++++++ templates/main.html.ep | 2 ++ 2 files changed, 14 insertions(+) diff --git a/index.pl b/index.pl index f9f2619..de7f708 100644 --- a/index.pl +++ b/index.pl @@ -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 %>
v<%= $Travel::Status::DE::HAFAS::VERSION %>
Travel::Status::DE::EFA v<%= $Travel::Status::DE::EFA::VERSION %>
+Imprint
+Privacy
-- cgit v1.2.3