2019-03-22 15:56:49 +00:00
|
|
|
package Travelynx::Controller::Static;
|
2020-11-27 21:12:56 +00:00
|
|
|
# Copyright (C) 2020 Daniel Friesel
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MIT
|
2019-03-22 15:56:49 +00:00
|
|
|
use Mojo::Base 'Mojolicious::Controller';
|
|
|
|
|
|
|
|
my $travelynx_version = qx{git describe --dirty} || 'experimental';
|
|
|
|
|
|
|
|
sub about {
|
|
|
|
my ($self) = @_;
|
|
|
|
|
2019-04-23 16:08:07 +00:00
|
|
|
$self->render( 'about',
|
|
|
|
version => $self->app->config->{version} // 'UNKNOWN' );
|
2019-03-22 15:56:49 +00:00
|
|
|
}
|
|
|
|
|
2019-05-03 08:32:58 +00:00
|
|
|
sub changelog {
|
|
|
|
my ($self) = @_;
|
|
|
|
|
|
|
|
$self->render( 'changelog',
|
|
|
|
version => $self->app->config->{version} // 'UNKNOWN' );
|
|
|
|
}
|
|
|
|
|
2019-03-22 15:56:49 +00:00
|
|
|
sub imprint {
|
|
|
|
my ($self) = @_;
|
|
|
|
|
|
|
|
$self->render('imprint');
|
|
|
|
}
|
|
|
|
|
2019-05-03 18:43:46 +00:00
|
|
|
sub offline {
|
|
|
|
my ($self) = @_;
|
|
|
|
|
|
|
|
$self->render('offline');
|
|
|
|
}
|
|
|
|
|
2019-03-22 15:56:49 +00:00
|
|
|
1;
|