From 11ddc957805e1a6b54e2fecbe4121d2c9e5c4a9e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 3 Jun 2019 15:15:08 +0200 Subject: add an about page --- lib/DBInfoscreen.pm | 2 ++ lib/DBInfoscreen/Controller/Static.pm | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index 422a25d..548fce2 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -218,6 +218,8 @@ sub startup { $r->post('/_geolocation')->to('stationboard#stations_by_coordinates'); + $r->get('/_about')->to('static#about'); + $r->get('/_impressum')->to('static#imprint'); $r->get('/_wr/:train/:departure')->to('wagenreihung#wagenreihung'); diff --git a/lib/DBInfoscreen/Controller/Static.pm b/lib/DBInfoscreen/Controller/Static.pm index 434facd..ba2cd89 100644 --- a/lib/DBInfoscreen/Controller/Static.pm +++ b/lib/DBInfoscreen/Controller/Static.pm @@ -43,6 +43,12 @@ sub geolocation { ); } +sub about { + my ($self) = @_; + + $self->render( 'about', hide_opts => 1 ); +} + sub privacy { my ($self) = @_; -- cgit v1.2.3