initial commit of file from CVS for smeserver-manager on Fri Mar 22 14:54:28 AEDT 2024
This commit is contained in:
34
root/usr/share/smanager/lib/SrvMngr/Controller/Manual.pm
Normal file
34
root/usr/share/smanager/lib/SrvMngr/Controller/Manual.pm
Normal file
@@ -0,0 +1,34 @@
|
||||
package SrvMngr::Controller::Manual;
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# heading : Support
|
||||
# description : Online manual
|
||||
# navigation : 0000 100
|
||||
# menu : N
|
||||
#
|
||||
# routes : end
|
||||
#----------------------------------------------------------------------
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Mojo::Base 'Mojolicious::Controller';
|
||||
|
||||
use Locale::gettext;
|
||||
use SrvMngr::I18N;
|
||||
use SrvMngr qw(theme_list init_session);
|
||||
|
||||
|
||||
sub main {
|
||||
my $c = shift;
|
||||
$c->app->log->info($c->log_req);
|
||||
|
||||
my $title = $c->l('manual_FORM_TITLE');
|
||||
my $modul = $c->render_to_string(inline => $c->l('manual_DESCRIPTION'));
|
||||
|
||||
$c->stash( title => $title, modul => $modul);
|
||||
|
||||
$c->render(template => 'manual');
|
||||
}
|
||||
|
||||
|
||||
1;
|
Reference in New Issue
Block a user