From 74fd97b4b888470147647ac5b56ec8523b1be48d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 7 Oct 2018 11:57:49 +0200 Subject: [PATCH] add simple about page --- index.pl | 6 ++++++ templates/about.html.ep | 13 +++++++++++++ templates/layouts/default.html.ep | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 templates/about.html.ep diff --git a/index.pl b/index.pl index 2f2e46f..d701e36 100755 --- a/index.pl +++ b/index.pl @@ -640,6 +640,12 @@ post '/action' => sub { } }; +get '/x/about' => sub { + my ($self) = @_; + + $self->render( 'about', version => $VERSION ); +}; + post '/x/geolocation' => sub { my ($self) = @_; diff --git a/templates/about.html.ep b/templates/about.html.ep new file mode 100644 index 0000000..983b73b --- /dev/null +++ b/templates/about.html.ep @@ -0,0 +1,13 @@ +
+
+ travelynx v<%= stash('version') // '???' %>
+ Backend: + Travel::Status::DE::IRIS + v<%= $Travel::Status::DE::IRIS::VERSION %>
+ Haltestellendaten + © DB Station&Service AG, + Europaplatz 1, + 10557 Berlin, lizensiert unter CC-BY 4.0 +
+
+ diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index a9f1464..2e07ffe 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -21,7 +21,7 @@