mirror of
https://github.com/derf/travelynx
synced 2024-12-12 14:02:33 +00:00
32 lines
524 B
Perl
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;
|