summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller/Static.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DBInfoscreen/Controller/Static.pm')
-rw-r--r--lib/DBInfoscreen/Controller/Static.pm48
1 files changed, 13 insertions, 35 deletions
diff --git a/lib/DBInfoscreen/Controller/Static.pm b/lib/DBInfoscreen/Controller/Static.pm
index 4b324bd..9a57f05 100644
--- a/lib/DBInfoscreen/Controller/Static.pm
+++ b/lib/DBInfoscreen/Controller/Static.pm
@@ -1,46 +1,24 @@
package DBInfoscreen::Controller::Static;
-use Mojo::Base 'Mojolicious::Controller';
-# Copyright (C) 2011-2019 Daniel Friesel <derf+dbf@finalrewind.org>
-# License: 2-Clause BSD
+# Copyright (C) 2011-2020 Birte Kristina Friesel
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+use Mojo::Base 'Mojolicious::Controller';
my %default = (
mode => 'app',
admode => 'deparr',
);
-my $dbf_version = qx{git describe --dirty} || 'experimental';
-
-sub redirect {
- my ($self) = @_;
- my $station = $self->param('station');
- my $params = $self->req->params;
-
- $params->remove('station');
-
- for my $param (qw(platforms mode admode via)) {
- if (
- not $params->param($param)
- or ( exists $default{$param}
- and $params->param($param) eq $default{$param} )
- )
- {
- $params->remove($param);
- }
- }
-
- $params = $params->to_string;
-
- $self->redirect_to("/${station}?${params}");
-}
-
-sub geolocation {
+sub geostop {
my ($self) = @_;
$self->render(
- 'geolocation',
- with_geolocation => 1,
- hide_opts => 1
+ 'geostop',
+ with_geostop => 1,
+ hide_opts => 1,
+ hide_footer => 1,
);
}
@@ -50,20 +28,20 @@ sub about {
$self->render(
'about',
hide_opts => 1,
- version => $dbf_version
+ hide_footer => 1,
);
}
sub privacy {
my ($self) = @_;
- $self->render( 'privacy', hide_opts => 1 );
+ $self->render( 'privacy', hide_opts => 1, hide_footer => 1 );
}
sub imprint {
my ($self) = @_;
- $self->render( 'imprint', hide_opts => 1 );
+ $self->render( 'imprint', hide_opts => 1, hide_footer => 1 );
}
1;