travelynx/lib/Travelynx/Controller/Static.pm
2019-05-03 20:43:46 +02:00

32 lines
524 B
Perl

package Travelynx::Controller::Static;
use Mojo::Base 'Mojolicious::Controller';
my $travelynx_version = qx{git describe --dirty} || 'experimental';
sub about {
my ($self) = @_;
$self->render( 'about',
version => $self->app->config->{version} // 'UNKNOWN' );
}
sub changelog {
my ($self) = @_;
$self->render( 'changelog',
version => $self->app->config->{version} // 'UNKNOWN' );
}
sub imprint {
my ($self) = @_;
$self->render('imprint');
}
sub offline {
my ($self) = @_;
$self->render('offline');
}
1;