summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindex.pl12
-rw-r--r--templates/about.html.ep3
2 files changed, 15 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 1c32fcb..829c4d8 100755
--- a/index.pl
+++ b/index.pl
@@ -766,6 +766,18 @@ get '/x/about' => sub {
$self->render( 'about', version => $VERSION );
};
+get '/x/impressum' => sub {
+ my ($self) = @_;
+
+ $self->render('imprint');
+};
+
+get '/x/imprint' => sub {
+ my ($self) = @_;
+
+ $self->render('imprint');
+};
+
post '/x/geolocation' => sub {
my ($self) = @_;
diff --git a/templates/about.html.ep b/templates/about.html.ep
index 983b73b..ac68d23 100644
--- a/templates/about.html.ep
+++ b/templates/about.html.ep
@@ -11,3 +11,6 @@
</div>
</div>
+% if (-e 'templates/imprint.html.ep') {
+%= include 'imprint'
+% }