use SL::Locale::String qw(t8);
use SL::System::InstallationLock;
use SL::User;
+use SL::Version;
use SL::Layout::AdminLogin;
use Rose::Object::MakeMethods::Generic
sub login_form {
my ($self, %params) = @_;
$::request->layout(SL::Layout::AdminLogin->new);
- my $version = $::form->read_version;
- $self->render('admin/adminlogin', title => t8('kivitendo v#1 administration', $version), %params, version => $version);
+ my $version = SL::Version->get_version;
+ $self->render('admin/adminlogin', title => t8('kivitendo v#1 administration', $version), %params, version => $version, logo_url => $::form->read_logo );
}
sub edit_user_form {
use SL::DB::Employee;
use SL::Locale::String qw(t8);
use SL::User;
+use SL::Version;
use Rose::Object::MakeMethods::Generic (
'scalar --get_set_init' => [ qw(clients default_client_id) ],
sub show_login_form {
my ($self, %params) = @_;
- $self->render('login_screen/user_login', %params, version => $::form->read_version);
+ $self->render('login_screen/user_login', %params, version => SL::Version->get_version, logo_url => $::form->read_logo );
}
1;
use SL::DB::Helper::ALL; # since we work on meta data, we need everything
use SL::DB::Helper::Mappings;
use SL::Locale::String qw(t8);
+use SL::Version;
use Rose::Object::MakeMethods::Generic (
scalar => [ qw(from to writer company location) ],
sub make_comment {
my $gobd_version = API_VERSION();
- my $kivi_version = $::form->read_version;
+ my $kivi_version = SL::Version->get_version;
my $person = $::myconfig{name};
my $contact = join ', ',
(t8("Email") . ": $::myconfig{email}" ) x!! $::myconfig{email},