diff --git a/index.pl b/index.pl index 2f2e46f94f9172f9f4c440f525f39d2f88c3e809..d701e367c4fcf93ce256e334e44b70f8e29e101c 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 0000000000000000000000000000000000000000..983b73b35c9869cabe03310740bcf95abe9399fa --- /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 a9f146452107fb46498a51c8b840989e740d371f..2e07ffeb7d03530ccba00cf426f9115d137fec42 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -21,7 +21,7 @@