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 @@