summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-02 18:12:10 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-02 18:12:10 +0100
commitc6532906df51acb736509e399a24bb32fb536c45 (patch)
tree2024ed088ca75f01c596927aec428c8954af002d
parent856a66c0bea917af8c7efd907d2200c01bab382b (diff)
add imprint
-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'
+% }